Index: Baza Reklam 2 - Faktury/ZamowieniaForm.cs
===================================================================
--- Baza Reklam 2 - Faktury/ZamowieniaForm.cs (revision 33)
+++ Baza Reklam 2 - Faktury/ZamowieniaForm.cs (revision 34)
@@ -732,5 +732,5 @@
                 else
                 {
-                    FactureViewer fv = new FactureViewer(row.idFakturyKorekta, row.ID_FAKTURY);
+                    FactureViewer fv = new FactureViewer(row.ID_FAKTURY,row.idFakturyVAT,row.idFakturyKorekta);
                     fv.ShowDialog();
                 }
@@ -848,4 +848,5 @@
             naglowekKorekty.idZamowienia = faktura.idZamowienia;
             naglowekKorekty.idFakturyKorekta = faktura.ID_FAKTURY;
+            naglowekKorekty.idFakturyVAT = faktura.ID_FAKTURY;
 
             naglowekKorekty.NUMER_ROZ = faktura.NUMER_ROZ; ;
Index: Baza Reklam 2 - Faktury/FactureViewer.cs
===================================================================
--- Baza Reklam 2 - Faktury/FactureViewer.cs (revision 29)
+++ Baza Reklam 2 - Faktury/FactureViewer.cs (revision 34)
@@ -20,4 +20,5 @@
         private int idFaktury;
         private int idKorekty;
+        private int idPoprzedniejKorekty;
 
         /// <summary>
@@ -153,5 +154,8 @@
         }
 
-        public FactureViewer(int idFakt, int idKorekty)
+        /// <summary>
+        /// Przy pierwszej korekcie  idKorygowanejFaktury = idPoprzedniejKorekty
+        /// </summary>
+        public FactureViewer(int idKorekty, int idKorygowanejFaktury, int idPoprzedniejKorekty)
         {
             InitializeComponent();
@@ -163,6 +167,7 @@
             reportViewer1.LocalReport.ReportEmbeddedResource = "Baza_Reklam.Raporty.fakturaKorekta.rdlc";
 
-            this.idFaktury = idFakt;
+            this.idFaktury = idKorygowanejFaktury;
             this.idKorekty = idKorekty;
+            this.idPoprzedniejKorekty = idPoprzedniejKorekty;
 
             this.zapiszButton.Click += zapiszKorektaButton_Click;
@@ -185,17 +190,15 @@
             typComboBox.Enabled = false;
            
-            raporty.FakturaDataTable korektaTable = fakturaTableAdapter1.GetDataByIdFaktury(idKorekty);
-            raporty.FakturaRow korekta = korektaTable[0];
-            reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("Korekta",korektaTable));
-            reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("Faktura", fakturaTableAdapter1.GetDataByIdFaktury(idFakt)));
+            reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("Korekta",fakturaTableAdapter1.GetDataByIdFaktury(idKorekty)));
+            reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("Faktura", fakturaTableAdapter1.GetDataByIdFaktury(idFaktury)));
      
             //piersza korekta
-            if (korekta.idFakturyKorekta == idFaktury)
-            {
-                reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("FakturaDetails2", fAKTURA_DETAILS2TableAdapter.GetDataIdFaktury(idFakt)));
+            if (idPoprzedniejKorekty == idFaktury)
+            {
+                reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("FakturaDetails2", fAKTURA_DETAILS2TableAdapter.GetDataIdFaktury(idFaktury)));
             }
             else
             {
-                reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("FakturaDetails2", fAKTURA_DETAILS2TableAdapter.GetDataIdFaktury(korekta.idFakturyKorekta)));
+                reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("FakturaDetails2", fAKTURA_DETAILS2TableAdapter.GetDataIdFaktury(idPoprzedniejKorekty)));
             }
             reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("FakturaDetailsKorekty", fAKTURA_DETAILS2TableAdapter.GetDataIdFaktury(idKorekty)));
@@ -352,19 +355,19 @@
             //ustawienie parametrów, nowych datasoure dla raportu
             List<ReportParameter> paramList = new List<ReportParameter>();
-            raporty.FakturaDataTable korektaTable = fakturaTableAdapter1.GetDataByIdFaktury(idKorekty);
-            raporty.FakturaRow korekta = korektaTable[0];
-            reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("Korekta", korektaTable));
-            reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("Faktura", fakturaTableAdapter1.GetDataByIdFaktury(this.idFaktury)));
-
+           
+             reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("Korekta",fakturaTableAdapter1.GetDataByIdFaktury(idKorekty)));
+            reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("Faktura", fakturaTableAdapter1.GetDataByIdFaktury(idFaktury)));
+     
             //piersza korekta
-            if (korekta.idFakturyKorekta == idFaktury)
-            {
-                reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("FakturaDetails2", fAKTURA_DETAILS2TableAdapter.GetDataIdFaktury(this.idFaktury)));
+            if (idPoprzedniejKorekty == idFaktury)
+            {
+                reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("FakturaDetails2", fAKTURA_DETAILS2TableAdapter.GetDataIdFaktury(idFaktury)));
             }
             else
             {
-                reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("FakturaDetails2", fAKTURA_DETAILS2TableAdapter.GetDataIdFaktury(korekta.idFakturyKorekta)));
+                reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("FakturaDetails2", fAKTURA_DETAILS2TableAdapter.GetDataIdFaktury(idPoprzedniejKorekty)));
             }
             reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("FakturaDetailsKorekty", fAKTURA_DETAILS2TableAdapter.GetDataIdFaktury(idKorekty)));
+           
             reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("tlumaczenia", ds.Tables[0]));
 
Index: Baza Reklam 2 - Faktury/raporty.xsd
===================================================================
--- Baza Reklam 2 - Faktury/raporty.xsd (revision 17)
+++ Baza Reklam 2 - Faktury/raporty.xsd (revision 34)
@@ -20,5 +20,5 @@
                       F.zaplata_opis, F.Zaliczka_Brutto, F.Zaliczka_Data, F.waluta_brutto, F.waluta_miano, F.waluta_kurs, F.waluta_przelicznik, F.waluta_kurs_z_dnia, 
                       F.waluta_tabela_nr, K.KONTO, T.[HASÅO REKLAMOWE], a.RejestrFaktur_Symbol, K2.Adres_Kor, a.Adres_Kor AS Adres_Kor_Agencji, F.idZamowienia, 
-                      F.idFakturyKorekta, F.KOREKTA
+                      F.KOREKTA, F.idFakturyKorekta, F.idFakturyVAT
 FROM         FAKTURY AS F LEFT OUTER JOIN
                       KONTA AS K ON K.id = F.ID_KONTA LEFT OUTER JOIN
@@ -83,4 +83,5 @@
               <Mapping SourceColumn="idZamowienia" DataSetColumn="idZamowienia" />
               <Mapping SourceColumn="idFakturyKorekta" DataSetColumn="idFakturyKorekta" />
+              <Mapping SourceColumn="idFakturyVAT" DataSetColumn="idFakturyVAT" />
             </Mappings>
             <Sources>
@@ -403,4 +404,216 @@
           <xs:complexType>
             <xs:sequence>
+              <xs:element name="ID_FAKTURY" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="ID_FAKTURY" msprop:Generator_ColumnVarNameInTable="columnID_FAKTURY" msprop:Generator_ColumnPropNameInRow="ID_FAKTURY" msprop:Generator_ColumnPropNameInTable="ID_FAKTURYColumn" type="xs:int" />
+              <xs:element name="NUMER" msprop:Generator_UserColumnName="NUMER" msprop:Generator_ColumnVarNameInTable="columnNUMER" msprop:Generator_ColumnPropNameInRow="NUMER" msprop:Generator_ColumnPropNameInTable="NUMERColumn" type="xs:int" minOccurs="0" />
+              <xs:element name="NUMER_ROZ" msprop:Generator_UserColumnName="NUMER_ROZ" msprop:Generator_ColumnVarNameInTable="columnNUMER_ROZ" msprop:Generator_ColumnPropNameInRow="NUMER_ROZ" msprop:Generator_ColumnPropNameInTable="NUMER_ROZColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="8" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="NUMER_ROK" msprop:Generator_UserColumnName="NUMER_ROK" msprop:Generator_ColumnVarNameInTable="columnNUMER_ROK" msprop:Generator_ColumnPropNameInRow="NUMER_ROK" msprop:Generator_ColumnPropNameInTable="NUMER_ROKColumn" type="xs:int" minOccurs="0" />
+              <xs:element name="DATA_WYSTAWIENIA" msprop:Generator_UserColumnName="DATA_WYSTAWIENIA" msprop:Generator_ColumnVarNameInTable="columnDATA_WYSTAWIENIA" msprop:Generator_ColumnPropNameInRow="DATA_WYSTAWIENIA" msprop:Generator_ColumnPropNameInTable="DATA_WYSTAWIENIAColumn" type="xs:dateTime" minOccurs="0" />
+              <xs:element name="MIEJSCOWOSC_WYSTAWIENIA" msprop:Generator_UserColumnName="MIEJSCOWOSC_WYSTAWIENIA" msprop:Generator_ColumnVarNameInTable="columnMIEJSCOWOSC_WYSTAWIENIA" msprop:Generator_ColumnPropNameInRow="MIEJSCOWOSC_WYSTAWIENIA" msprop:Generator_ColumnPropNameInTable="MIEJSCOWOSC_WYSTAWIENIAColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="30" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="ID_SPRZEDAWCY" msprop:Generator_UserColumnName="ID_SPRZEDAWCY" msprop:Generator_ColumnVarNameInTable="columnID_SPRZEDAWCY" msprop:Generator_ColumnPropNameInRow="ID_SPRZEDAWCY" msprop:Generator_ColumnPropNameInTable="ID_SPRZEDAWCYColumn" type="xs:int" minOccurs="0" />
+              <xs:element name="ID_NABYWCY" msprop:Generator_UserColumnName="ID_NABYWCY" msprop:Generator_ColumnVarNameInTable="columnID_NABYWCY" msprop:Generator_ColumnPropNameInRow="ID_NABYWCY" msprop:Generator_ColumnPropNameInTable="ID_NABYWCYColumn" type="xs:int" minOccurs="0" />
+              <xs:element name="DATA_SPRZEDAZY" msprop:Generator_UserColumnName="DATA_SPRZEDAZY" msprop:Generator_ColumnVarNameInTable="columnDATA_SPRZEDAZY" msprop:Generator_ColumnPropNameInRow="DATA_SPRZEDAZY" msprop:Generator_ColumnPropNameInTable="DATA_SPRZEDAZYColumn" type="xs:dateTime" minOccurs="0" />
+              <xs:element name="PODPIS_WYSTAWIL" msprop:Generator_UserColumnName="PODPIS_WYSTAWIL" msprop:Generator_ColumnVarNameInTable="columnPODPIS_WYSTAWIL" msprop:Generator_ColumnPropNameInRow="PODPIS_WYSTAWIL" msprop:Generator_ColumnPropNameInTable="PODPIS_WYSTAWILColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="30" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="PODPIS_ODEBRAL" msprop:Generator_UserColumnName="PODPIS_ODEBRAL" msprop:Generator_ColumnVarNameInTable="columnPODPIS_ODEBRAL" msprop:Generator_ColumnPropNameInRow="PODPIS_ODEBRAL" msprop:Generator_ColumnPropNameInTable="PODPIS_ODEBRALColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="30" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="opis" msprop:Generator_UserColumnName="opis" msprop:Generator_ColumnVarNameInTable="columnopis" msprop:Generator_ColumnPropNameInRow="opis" msprop:Generator_ColumnPropNameInTable="opisColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="1073741823" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="SPOSOB_ZAPLATY" msprop:Generator_UserColumnName="SPOSOB_ZAPLATY" msprop:Generator_ColumnVarNameInTable="columnSPOSOB_ZAPLATY" msprop:Generator_ColumnPropNameInRow="SPOSOB_ZAPLATY" msprop:Generator_ColumnPropNameInTable="SPOSOB_ZAPLATYColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="20" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="TERMIN_ZAPLATY" msprop:Generator_UserColumnName="TERMIN_ZAPLATY" msprop:Generator_ColumnVarNameInTable="columnTERMIN_ZAPLATY" msprop:Generator_ColumnPropNameInRow="TERMIN_ZAPLATY" msprop:Generator_ColumnPropNameInTable="TERMIN_ZAPLATYColumn" type="xs:dateTime" minOccurs="0" />
+              <xs:element name="ZAPLACONO" msprop:Generator_UserColumnName="ZAPLACONO" msprop:Generator_ColumnVarNameInTable="columnZAPLACONO" msprop:Generator_ColumnPropNameInRow="ZAPLACONO" msprop:Generator_ColumnPropNameInTable="ZAPLACONOColumn" type="xs:boolean" minOccurs="0" />
+              <xs:element name="BYL_WYDRUK" msprop:Generator_UserColumnName="BYL_WYDRUK" msprop:Generator_ColumnVarNameInTable="columnBYL_WYDRUK" msprop:Generator_ColumnPropNameInRow="BYL_WYDRUK" msprop:Generator_ColumnPropNameInTable="BYL_WYDRUKColumn" type="xs:boolean" minOccurs="0" />
+              <xs:element name="NABYWCA_ADRES" msprop:Generator_UserColumnName="NABYWCA_ADRES" msprop:Generator_ColumnVarNameInTable="columnNABYWCA_ADRES" msprop:Generator_ColumnPropNameInRow="NABYWCA_ADRES" msprop:Generator_ColumnPropNameInTable="NABYWCA_ADRESColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="1073741823" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="SPRZEDAWCA_ADRES" msprop:Generator_UserColumnName="SPRZEDAWCA_ADRES" msprop:Generator_ColumnVarNameInTable="columnSPRZEDAWCA_ADRES" msprop:Generator_ColumnPropNameInRow="SPRZEDAWCA_ADRES" msprop:Generator_ColumnPropNameInTable="SPRZEDAWCA_ADRESColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="1073741823" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="SPRZEDAWCA_NIP" msprop:Generator_UserColumnName="SPRZEDAWCA_NIP" msprop:Generator_ColumnVarNameInTable="columnSPRZEDAWCA_NIP" msprop:Generator_ColumnPropNameInRow="SPRZEDAWCA_NIP" msprop:Generator_ColumnPropNameInTable="SPRZEDAWCA_NIPColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="50" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="NABYWCA_NIP" msprop:Generator_UserColumnName="NABYWCA_NIP" msprop:Generator_ColumnVarNameInTable="columnNABYWCA_NIP" msprop:Generator_ColumnPropNameInRow="NABYWCA_NIP" msprop:Generator_ColumnPropNameInTable="NABYWCA_NIPColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="50" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="FAKTURA_TYP" msprop:Generator_UserColumnName="FAKTURA_TYP" msprop:Generator_ColumnVarNameInTable="columnFAKTURA_TYP" msprop:Generator_ColumnPropNameInRow="FAKTURA_TYP" msprop:Generator_ColumnPropNameInTable="FAKTURA_TYPColumn" type="xs:short" minOccurs="0" />
+              <xs:element name="FAKTURA_PODTYP" msprop:Generator_UserColumnName="FAKTURA_PODTYP" msprop:Generator_ColumnVarNameInTable="columnFAKTURA_PODTYP" msprop:Generator_ColumnPropNameInRow="FAKTURA_PODTYP" msprop:Generator_ColumnPropNameInTable="FAKTURA_PODTYPColumn" type="xs:short" minOccurs="0" />
+              <xs:element name="ID_KONTA" msprop:Generator_UserColumnName="ID_KONTA" msprop:Generator_ColumnVarNameInTable="columnID_KONTA" msprop:Generator_ColumnPropNameInRow="ID_KONTA" msprop:Generator_ColumnPropNameInTable="ID_KONTAColumn" type="xs:short" minOccurs="0" />
+              <xs:element name="EKSPORT" msprop:Generator_UserColumnName="EKSPORT" msprop:Generator_ColumnVarNameInTable="columnEKSPORT" msprop:Generator_ColumnPropNameInRow="EKSPORT" msprop:Generator_ColumnPropNameInTable="EKSPORTColumn" type="xs:boolean" />
+              <xs:element name="EXPORTED" msprop:Generator_UserColumnName="EXPORTED" msprop:Generator_ColumnVarNameInTable="columnEXPORTED" msprop:Generator_ColumnPropNameInRow="EXPORTED" msprop:Generator_ColumnPropNameInTable="EXPORTEDColumn" type="xs:boolean" />
+              <xs:element name="ID_TYTUL" msprop:Generator_UserColumnName="ID_TYTUL" msprop:Generator_ColumnVarNameInTable="columnID_TYTUL" msprop:Generator_ColumnPropNameInRow="ID_TYTUL" msprop:Generator_ColumnPropNameInTable="ID_TYTULColumn" type="xs:short" minOccurs="0" />
+              <xs:element name="EXPORTED_DATA" msprop:Generator_UserColumnName="EXPORTED_DATA" msprop:Generator_ColumnVarNameInTable="columnEXPORTED_DATA" msprop:Generator_ColumnPropNameInRow="EXPORTED_DATA" msprop:Generator_ColumnPropNameInTable="EXPORTED_DATAColumn" type="xs:dateTime" minOccurs="0" />
+              <xs:element name="suma_zaplat" msprop:Generator_UserColumnName="suma_zaplat" msprop:Generator_ColumnVarNameInTable="columnsuma_zaplat" msprop:Generator_ColumnPropNameInRow="suma_zaplat" msprop:Generator_ColumnPropNameInTable="suma_zaplatColumn" type="xs:decimal" minOccurs="0" />
+              <xs:element name="ID_FK_KOR" msprop:Generator_UserColumnName="ID_FK_KOR" msprop:Generator_ColumnVarNameInTable="columnID_FK_KOR" msprop:Generator_ColumnPropNameInRow="ID_FK_KOR" msprop:Generator_ColumnPropNameInTable="ID_FK_KORColumn" type="xs:int" minOccurs="0" />
+              <xs:element name="zaplata_data" msprop:Generator_UserColumnName="zaplata_data" msprop:Generator_ColumnVarNameInTable="columnzaplata_data" msprop:Generator_ColumnPropNameInRow="zaplata_data" msprop:Generator_ColumnPropNameInTable="zaplata_dataColumn" type="xs:dateTime" minOccurs="0" />
+              <xs:element name="zaplata_opis" msprop:Generator_UserColumnName="zaplata_opis" msprop:Generator_ColumnVarNameInTable="columnzaplata_opis" msprop:Generator_ColumnPropNameInRow="zaplata_opis" msprop:Generator_ColumnPropNameInTable="zaplata_opisColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="50" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="Zaliczka_Brutto" msprop:Generator_UserColumnName="Zaliczka_Brutto" msprop:Generator_ColumnVarNameInTable="columnZaliczka_Brutto" msprop:Generator_ColumnPropNameInRow="Zaliczka_Brutto" msprop:Generator_ColumnPropNameInTable="Zaliczka_BruttoColumn" type="xs:decimal" minOccurs="0" />
+              <xs:element name="Zaliczka_Data" msprop:Generator_UserColumnName="Zaliczka_Data" msprop:Generator_ColumnVarNameInTable="columnZaliczka_Data" msprop:Generator_ColumnPropNameInRow="Zaliczka_Data" msprop:Generator_ColumnPropNameInTable="Zaliczka_DataColumn" type="xs:dateTime" minOccurs="0" />
+              <xs:element name="waluta_brutto" msprop:Generator_UserColumnName="waluta_brutto" msprop:Generator_ColumnVarNameInTable="columnwaluta_brutto" msprop:Generator_ColumnPropNameInRow="waluta_brutto" msprop:Generator_ColumnPropNameInTable="waluta_bruttoColumn" type="xs:double" minOccurs="0" />
+              <xs:element name="waluta_miano" msprop:Generator_UserColumnName="waluta_miano" msprop:Generator_ColumnVarNameInTable="columnwaluta_miano" msprop:Generator_ColumnPropNameInRow="waluta_miano" msprop:Generator_ColumnPropNameInTable="waluta_mianoColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="4" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="waluta_kurs" msprop:Generator_UserColumnName="waluta_kurs" msprop:Generator_ColumnVarNameInTable="columnwaluta_kurs" msprop:Generator_ColumnPropNameInRow="waluta_kurs" msprop:Generator_ColumnPropNameInTable="waluta_kursColumn" type="xs:double" minOccurs="0" />
+              <xs:element name="waluta_przelicznik" msprop:Generator_UserColumnName="waluta_przelicznik" msprop:Generator_ColumnVarNameInTable="columnwaluta_przelicznik" msprop:Generator_ColumnPropNameInRow="waluta_przelicznik" msprop:Generator_ColumnPropNameInTable="waluta_przelicznikColumn" type="xs:int" minOccurs="0" />
+              <xs:element name="waluta_kurs_z_dnia" msprop:Generator_UserColumnName="waluta_kurs_z_dnia" msprop:Generator_ColumnVarNameInTable="columnwaluta_kurs_z_dnia" msprop:Generator_ColumnPropNameInRow="waluta_kurs_z_dnia" msprop:Generator_ColumnPropNameInTable="waluta_kurs_z_dniaColumn" type="xs:dateTime" minOccurs="0" />
+              <xs:element name="waluta_tabela_nr" msprop:Generator_UserColumnName="waluta_tabela_nr" msprop:Generator_ColumnVarNameInTable="columnwaluta_tabela_nr" msprop:Generator_ColumnPropNameInRow="waluta_tabela_nr" msprop:Generator_ColumnPropNameInTable="waluta_tabela_nrColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="15" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="KONTO" msprop:Generator_UserColumnName="KONTO" msprop:Generator_ColumnVarNameInTable="columnKONTO" msprop:Generator_ColumnPropNameInRow="KONTO" msprop:Generator_ColumnPropNameInTable="KONTOColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="500" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="HASÅO_x0020_REKLAMOWE" msprop:Generator_UserColumnName="HASÅO REKLAMOWE" msprop:Generator_ColumnVarNameInTable="columnHASÅO_REKLAMOWE" msprop:Generator_ColumnPropNameInRow="HASÅO_REKLAMOWE" msprop:Generator_ColumnPropNameInTable="HASÅO_REKLAMOWEColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="100" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="RejestrFaktur_Symbol" msprop:Generator_UserColumnName="RejestrFaktur_Symbol" msprop:Generator_ColumnVarNameInTable="columnRejestrFaktur_Symbol" msprop:Generator_ColumnPropNameInRow="RejestrFaktur_Symbol" msprop:Generator_ColumnPropNameInTable="RejestrFaktur_SymbolColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="5" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="Adres_Kor" msprop:Generator_UserColumnName="Adres_Kor" msprop:Generator_ColumnPropNameInRow="Adres_Kor" msprop:Generator_ColumnVarNameInTable="columnAdres_Kor" msprop:Generator_ColumnPropNameInTable="Adres_KorColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="200" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="Adres_Kor_Agencji" msprop:Generator_UserColumnName="Adres_Kor_Agencji" msprop:Generator_ColumnVarNameInTable="columnAdres_Kor_Agencji" msprop:Generator_ColumnPropNameInRow="Adres_Kor_Agencji" msprop:Generator_ColumnPropNameInTable="Adres_Kor_AgencjiColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="250" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="KOREKTA" msprop:Generator_UserColumnName="KOREKTA" msprop:Generator_ColumnPropNameInRow="KOREKTA" msprop:Generator_ColumnVarNameInTable="columnKOREKTA" msprop:Generator_ColumnPropNameInTable="KOREKTAColumn" type="xs:boolean" />
+              <xs:element name="idZamowienia" msprop:Generator_UserColumnName="idZamowienia" msprop:Generator_ColumnPropNameInRow="idZamowienia" msprop:Generator_ColumnVarNameInTable="columnidZamowienia" msprop:Generator_ColumnPropNameInTable="idZamowieniaColumn" type="xs:int" minOccurs="0" />
+              <xs:element name="idFakturyKorekta" msprop:Generator_UserColumnName="idFakturyKorekta" msprop:Generator_ColumnPropNameInRow="idFakturyKorekta" msprop:Generator_ColumnVarNameInTable="columnidFakturyKorekta" msprop:Generator_ColumnPropNameInTable="idFakturyKorektaColumn" type="xs:int" minOccurs="0" />
+              <xs:element name="idFakturyVAT" msprop:Generator_UserColumnName="idFakturyVAT" msprop:Generator_ColumnPropNameInRow="idFakturyVAT" msprop:Generator_ColumnVarNameInTable="columnidFakturyVAT" msprop:Generator_ColumnPropNameInTable="idFakturyVATColumn" type="xs:int" minOccurs="0" />
+            </xs:sequence>
+          </xs:complexType>
+        </xs:element>
+        <xs:element name="FAKTURA_DETAILS" msprop:Generator_UserTableName="FAKTURA_DETAILS" msprop:Generator_RowDeletedName="FAKTURA_DETAILSRowDeleted" msprop:Generator_RowChangedName="FAKTURA_DETAILSRowChanged" msprop:Generator_RowClassName="FAKTURA_DETAILSRow" msprop:Generator_RowChangingName="FAKTURA_DETAILSRowChanging" msprop:Generator_RowEvArgName="FAKTURA_DETAILSRowChangeEvent" msprop:Generator_RowEvHandlerName="FAKTURA_DETAILSRowChangeEventHandler" msprop:Generator_TableClassName="FAKTURA_DETAILSDataTable" msprop:Generator_TableVarName="tableFAKTURA_DETAILS" msprop:Generator_RowDeletingName="FAKTURA_DETAILSRowDeleting" msprop:Generator_TablePropName="FAKTURA_DETAILS">
+          <xs:complexType>
+            <xs:sequence>
+              <xs:element name="ID_FAKTURA_DETAILS" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="ID_FAKTURA_DETAILS" msprop:Generator_ColumnVarNameInTable="columnID_FAKTURA_DETAILS" msprop:Generator_ColumnPropNameInRow="ID_FAKTURA_DETAILS" msprop:Generator_ColumnPropNameInTable="ID_FAKTURA_DETAILSColumn" type="xs:int" />
+              <xs:element name="ID_FAKTURY" msprop:Generator_UserColumnName="ID_FAKTURY" msprop:Generator_ColumnVarNameInTable="columnID_FAKTURY" msprop:Generator_ColumnPropNameInRow="ID_FAKTURY" msprop:Generator_ColumnPropNameInTable="ID_FAKTURYColumn" type="xs:int" minOccurs="0" />
+              <xs:element name="ROK" msprop:Generator_UserColumnName="ROK" msprop:Generator_ColumnVarNameInTable="columnROK" msprop:Generator_ColumnPropNameInRow="ROK" msprop:Generator_ColumnPropNameInTable="ROKColumn" type="xs:int" minOccurs="0" />
+              <xs:element name="MIESIAC" msprop:Generator_UserColumnName="MIESIAC" msprop:Generator_ColumnVarNameInTable="columnMIESIAC" msprop:Generator_ColumnPropNameInRow="MIESIAC" msprop:Generator_ColumnPropNameInTable="MIESIACColumn" type="xs:short" minOccurs="0" />
+              <xs:element name="NAZWA_USLUGI" msprop:Generator_UserColumnName="NAZWA_USLUGI" msprop:Generator_ColumnVarNameInTable="columnNAZWA_USLUGI" msprop:Generator_ColumnPropNameInRow="NAZWA_USLUGI" msprop:Generator_ColumnPropNameInTable="NAZWA_USLUGIColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="100" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="SYMBOL_SWW" msprop:Generator_UserColumnName="SYMBOL_SWW" msprop:Generator_ColumnVarNameInTable="columnSYMBOL_SWW" msprop:Generator_ColumnPropNameInRow="SYMBOL_SWW" msprop:Generator_ColumnPropNameInTable="SYMBOL_SWWColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="30" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="JM" msprop:Generator_UserColumnName="JM" msprop:Generator_ColumnVarNameInTable="columnJM" msprop:Generator_ColumnPropNameInRow="JM" msprop:Generator_ColumnPropNameInTable="JMColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="5" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="ILOSC" msprop:Generator_UserColumnName="ILOSC" msprop:Generator_ColumnVarNameInTable="columnILOSC" msprop:Generator_ColumnPropNameInRow="ILOSC" msprop:Generator_ColumnPropNameInTable="ILOSCColumn" type="xs:int" minOccurs="0" />
+              <xs:element name="CENA_JEDN" msprop:Generator_UserColumnName="CENA_JEDN" msprop:Generator_ColumnVarNameInTable="columnCENA_JEDN" msprop:Generator_ColumnPropNameInRow="CENA_JEDN" msprop:Generator_ColumnPropNameInTable="CENA_JEDNColumn" type="xs:decimal" minOccurs="0" />
+              <xs:element name="UPUST_PR" msprop:Generator_UserColumnName="UPUST_PR" msprop:Generator_ColumnVarNameInTable="columnUPUST_PR" msprop:Generator_ColumnPropNameInRow="UPUST_PR" msprop:Generator_ColumnPropNameInTable="UPUST_PRColumn" type="xs:double" minOccurs="0" />
+              <xs:element name="UPUST_NETTO" msprop:Generator_UserColumnName="UPUST_NETTO" msprop:Generator_ColumnVarNameInTable="columnUPUST_NETTO" msprop:Generator_ColumnPropNameInRow="UPUST_NETTO" msprop:Generator_ColumnPropNameInTable="UPUST_NETTOColumn" type="xs:decimal" minOccurs="0" />
+              <xs:element name="NETTO" msprop:Generator_UserColumnName="NETTO" msprop:Generator_ColumnVarNameInTable="columnNETTO" msprop:Generator_ColumnPropNameInRow="NETTO" msprop:Generator_ColumnPropNameInTable="NETTOColumn" type="xs:decimal" minOccurs="0" />
+              <xs:element name="S_VAT" msprop:Generator_UserColumnName="S_VAT" msprop:Generator_ColumnVarNameInTable="columnS_VAT" msprop:Generator_ColumnPropNameInRow="S_VAT" msprop:Generator_ColumnPropNameInTable="S_VATColumn" type="xs:double" minOccurs="0" />
+              <xs:element name="VAT" msprop:Generator_UserColumnName="VAT" msprop:Generator_ColumnVarNameInTable="columnVAT" msprop:Generator_ColumnPropNameInRow="VAT" msprop:Generator_ColumnPropNameInTable="VATColumn" type="xs:decimal" minOccurs="0" />
+              <xs:element name="BRUTTO" msprop:Generator_UserColumnName="BRUTTO" msprop:Generator_ColumnVarNameInTable="columnBRUTTO" msprop:Generator_ColumnPropNameInRow="BRUTTO" msprop:Generator_ColumnPropNameInTable="BRUTTOColumn" type="xs:decimal" minOccurs="0" />
+              <xs:element name="TYTUL" msprop:Generator_UserColumnName="TYTUL" msprop:Generator_ColumnVarNameInTable="columnTYTUL" msprop:Generator_ColumnPropNameInRow="TYTUL" msprop:Generator_ColumnPropNameInTable="TYTULColumn" type="xs:short" minOccurs="0" />
+              <xs:element name="NR_WYDANIA" msprop:Generator_UserColumnName="NR_WYDANIA" msprop:Generator_ColumnVarNameInTable="columnNR_WYDANIA" msprop:Generator_ColumnPropNameInRow="NR_WYDANIA" msprop:Generator_ColumnPropNameInTable="NR_WYDANIAColumn" type="xs:short" minOccurs="0" />
+              <xs:element name="TYP" msprop:Generator_UserColumnName="TYP" msprop:Generator_ColumnVarNameInTable="columnTYP" msprop:Generator_ColumnPropNameInRow="TYP" msprop:Generator_ColumnPropNameInTable="TYPColumn" type="xs:short" minOccurs="0" />
+              <xs:element name="PODTYP" msprop:Generator_UserColumnName="PODTYP" msprop:Generator_ColumnVarNameInTable="columnPODTYP" msprop:Generator_ColumnPropNameInRow="PODTYP" msprop:Generator_ColumnPropNameInTable="PODTYPColumn" type="xs:short" minOccurs="0" />
+            </xs:sequence>
+          </xs:complexType>
+        </xs:element>
+        <xs:element name="Proforma" msprop:Generator_UserTableName="Proforma" msprop:Generator_RowDeletedName="ProformaRowDeleted" msprop:Generator_RowChangedName="ProformaRowChanged" msprop:Generator_RowClassName="ProformaRow" msprop:Generator_RowChangingName="ProformaRowChanging" msprop:Generator_RowEvArgName="ProformaRowChangeEvent" msprop:Generator_RowEvHandlerName="ProformaRowChangeEventHandler" msprop:Generator_TableClassName="ProformaDataTable" msprop:Generator_TableVarName="tableProforma" msprop:Generator_RowDeletingName="ProformaRowDeleting" msprop:Generator_TablePropName="Proforma">
+          <xs:complexType>
+            <xs:sequence>
+              <xs:element name="ID_x0020_REKLAMY" msprop:Generator_UserColumnName="ID REKLAMY" msprop:Generator_ColumnPropNameInRow="ID_REKLAMY" msprop:Generator_ColumnVarNameInTable="columnID_REKLAMY" msprop:Generator_ColumnPropNameInTable="ID_REKLAMYColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="10" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
               <xs:element name="ID_FAKTURY" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="ID_FAKTURY" msprop:Generator_ColumnPropNameInRow="ID_FAKTURY" msprop:Generator_ColumnVarNameInTable="columnID_FAKTURY" msprop:Generator_ColumnPropNameInTable="ID_FAKTURYColumn" type="xs:int" />
               <xs:element name="NUMER" msprop:Generator_UserColumnName="NUMER" msprop:Generator_ColumnPropNameInRow="NUMER" msprop:Generator_ColumnVarNameInTable="columnNUMER" msprop:Generator_ColumnPropNameInTable="NUMERColumn" type="xs:int" minOccurs="0" />
@@ -492,4 +705,5 @@
               <xs:element name="suma_zaplat" msprop:Generator_UserColumnName="suma_zaplat" msprop:Generator_ColumnPropNameInRow="suma_zaplat" msprop:Generator_ColumnVarNameInTable="columnsuma_zaplat" msprop:Generator_ColumnPropNameInTable="suma_zaplatColumn" type="xs:decimal" minOccurs="0" />
               <xs:element name="ID_FK_KOR" msprop:Generator_UserColumnName="ID_FK_KOR" msprop:Generator_ColumnPropNameInRow="ID_FK_KOR" msprop:Generator_ColumnVarNameInTable="columnID_FK_KOR" msprop:Generator_ColumnPropNameInTable="ID_FK_KORColumn" type="xs:int" minOccurs="0" />
+              <xs:element name="KOREKTA" msprop:Generator_UserColumnName="KOREKTA" msprop:Generator_ColumnPropNameInRow="KOREKTA" msprop:Generator_ColumnVarNameInTable="columnKOREKTA" msprop:Generator_ColumnPropNameInTable="KOREKTAColumn" type="xs:unsignedByte" />
               <xs:element name="zaplata_data" msprop:Generator_UserColumnName="zaplata_data" msprop:Generator_ColumnPropNameInRow="zaplata_data" msprop:Generator_ColumnVarNameInTable="columnzaplata_data" msprop:Generator_ColumnPropNameInTable="zaplata_dataColumn" type="xs:dateTime" minOccurs="0" />
               <xs:element name="zaplata_opis" msprop:Generator_UserColumnName="zaplata_opis" msprop:Generator_ColumnPropNameInRow="zaplata_opis" msprop:Generator_ColumnVarNameInTable="columnzaplata_opis" msprop:Generator_ColumnPropNameInTable="zaplata_opisColumn" minOccurs="0">
@@ -541,5 +755,5 @@
                 </xs:simpleType>
               </xs:element>
-              <xs:element name="Adres_Kor" msprop:Generator_UserColumnName="Adres_Kor" msprop:Generator_ColumnVarNameInTable="columnAdres_Kor" msprop:Generator_ColumnPropNameInRow="Adres_Kor" msprop:Generator_ColumnPropNameInTable="Adres_KorColumn" minOccurs="0">
+              <xs:element name="Adres_Kor" msprop:Generator_UserColumnName="Adres_Kor" msprop:Generator_ColumnPropNameInRow="Adres_Kor" msprop:Generator_ColumnVarNameInTable="columnAdres_Kor" msprop:Generator_ColumnPropNameInTable="Adres_KorColumn" minOccurs="0">
                 <xs:simpleType>
                   <xs:restriction base="xs:string">
@@ -548,217 +762,5 @@
                 </xs:simpleType>
               </xs:element>
-              <xs:element name="Adres_Kor_Agencji" msprop:Generator_UserColumnName="Adres_Kor_Agencji" msprop:Generator_ColumnPropNameInRow="Adres_Kor_Agencji" msprop:Generator_ColumnVarNameInTable="columnAdres_Kor_Agencji" msprop:Generator_ColumnPropNameInTable="Adres_Kor_AgencjiColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="250" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="KOREKTA" msprop:Generator_UserColumnName="KOREKTA" msprop:Generator_ColumnVarNameInTable="columnKOREKTA" msprop:Generator_ColumnPropNameInRow="KOREKTA" msprop:Generator_ColumnPropNameInTable="KOREKTAColumn" type="xs:boolean" />
-              <xs:element name="idZamowienia" msprop:Generator_UserColumnName="idZamowienia" msprop:Generator_ColumnVarNameInTable="columnidZamowienia" msprop:Generator_ColumnPropNameInRow="idZamowienia" msprop:Generator_ColumnPropNameInTable="idZamowieniaColumn" type="xs:int" minOccurs="0" />
-              <xs:element name="idFakturyKorekta" msprop:Generator_UserColumnName="idFakturyKorekta" msprop:Generator_ColumnVarNameInTable="columnidFakturyKorekta" msprop:Generator_ColumnPropNameInRow="idFakturyKorekta" msprop:Generator_ColumnPropNameInTable="idFakturyKorektaColumn" type="xs:int" minOccurs="0" />
-            </xs:sequence>
-          </xs:complexType>
-        </xs:element>
-        <xs:element name="FAKTURA_DETAILS" msprop:Generator_UserTableName="FAKTURA_DETAILS" msprop:Generator_RowDeletedName="FAKTURA_DETAILSRowDeleted" msprop:Generator_RowChangedName="FAKTURA_DETAILSRowChanged" msprop:Generator_RowClassName="FAKTURA_DETAILSRow" msprop:Generator_RowChangingName="FAKTURA_DETAILSRowChanging" msprop:Generator_RowEvArgName="FAKTURA_DETAILSRowChangeEvent" msprop:Generator_RowEvHandlerName="FAKTURA_DETAILSRowChangeEventHandler" msprop:Generator_TableClassName="FAKTURA_DETAILSDataTable" msprop:Generator_TableVarName="tableFAKTURA_DETAILS" msprop:Generator_RowDeletingName="FAKTURA_DETAILSRowDeleting" msprop:Generator_TablePropName="FAKTURA_DETAILS">
-          <xs:complexType>
-            <xs:sequence>
-              <xs:element name="ID_FAKTURA_DETAILS" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="ID_FAKTURA_DETAILS" msprop:Generator_ColumnPropNameInRow="ID_FAKTURA_DETAILS" msprop:Generator_ColumnVarNameInTable="columnID_FAKTURA_DETAILS" msprop:Generator_ColumnPropNameInTable="ID_FAKTURA_DETAILSColumn" type="xs:int" />
-              <xs:element name="ID_FAKTURY" msprop:Generator_UserColumnName="ID_FAKTURY" msprop:Generator_ColumnPropNameInRow="ID_FAKTURY" msprop:Generator_ColumnVarNameInTable="columnID_FAKTURY" msprop:Generator_ColumnPropNameInTable="ID_FAKTURYColumn" type="xs:int" minOccurs="0" />
-              <xs:element name="ROK" msprop:Generator_UserColumnName="ROK" msprop:Generator_ColumnPropNameInRow="ROK" msprop:Generator_ColumnVarNameInTable="columnROK" msprop:Generator_ColumnPropNameInTable="ROKColumn" type="xs:int" minOccurs="0" />
-              <xs:element name="MIESIAC" msprop:Generator_UserColumnName="MIESIAC" msprop:Generator_ColumnPropNameInRow="MIESIAC" msprop:Generator_ColumnVarNameInTable="columnMIESIAC" msprop:Generator_ColumnPropNameInTable="MIESIACColumn" type="xs:short" minOccurs="0" />
-              <xs:element name="NAZWA_USLUGI" msprop:Generator_UserColumnName="NAZWA_USLUGI" msprop:Generator_ColumnPropNameInRow="NAZWA_USLUGI" msprop:Generator_ColumnVarNameInTable="columnNAZWA_USLUGI" msprop:Generator_ColumnPropNameInTable="NAZWA_USLUGIColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="100" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="SYMBOL_SWW" msprop:Generator_UserColumnName="SYMBOL_SWW" msprop:Generator_ColumnPropNameInRow="SYMBOL_SWW" msprop:Generator_ColumnVarNameInTable="columnSYMBOL_SWW" msprop:Generator_ColumnPropNameInTable="SYMBOL_SWWColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="30" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="JM" msprop:Generator_UserColumnName="JM" msprop:Generator_ColumnPropNameInRow="JM" msprop:Generator_ColumnVarNameInTable="columnJM" msprop:Generator_ColumnPropNameInTable="JMColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="5" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="ILOSC" msprop:Generator_UserColumnName="ILOSC" msprop:Generator_ColumnPropNameInRow="ILOSC" msprop:Generator_ColumnVarNameInTable="columnILOSC" msprop:Generator_ColumnPropNameInTable="ILOSCColumn" type="xs:int" minOccurs="0" />
-              <xs:element name="CENA_JEDN" msprop:Generator_UserColumnName="CENA_JEDN" msprop:Generator_ColumnPropNameInRow="CENA_JEDN" msprop:Generator_ColumnVarNameInTable="columnCENA_JEDN" msprop:Generator_ColumnPropNameInTable="CENA_JEDNColumn" type="xs:decimal" minOccurs="0" />
-              <xs:element name="UPUST_PR" msprop:Generator_UserColumnName="UPUST_PR" msprop:Generator_ColumnPropNameInRow="UPUST_PR" msprop:Generator_ColumnVarNameInTable="columnUPUST_PR" msprop:Generator_ColumnPropNameInTable="UPUST_PRColumn" type="xs:double" minOccurs="0" />
-              <xs:element name="UPUST_NETTO" msprop:Generator_UserColumnName="UPUST_NETTO" msprop:Generator_ColumnPropNameInRow="UPUST_NETTO" msprop:Generator_ColumnVarNameInTable="columnUPUST_NETTO" msprop:Generator_ColumnPropNameInTable="UPUST_NETTOColumn" type="xs:decimal" minOccurs="0" />
-              <xs:element name="NETTO" msprop:Generator_UserColumnName="NETTO" msprop:Generator_ColumnPropNameInRow="NETTO" msprop:Generator_ColumnVarNameInTable="columnNETTO" msprop:Generator_ColumnPropNameInTable="NETTOColumn" type="xs:decimal" minOccurs="0" />
-              <xs:element name="S_VAT" msprop:Generator_UserColumnName="S_VAT" msprop:Generator_ColumnPropNameInRow="S_VAT" msprop:Generator_ColumnVarNameInTable="columnS_VAT" msprop:Generator_ColumnPropNameInTable="S_VATColumn" type="xs:double" minOccurs="0" />
-              <xs:element name="VAT" msprop:Generator_UserColumnName="VAT" msprop:Generator_ColumnPropNameInRow="VAT" msprop:Generator_ColumnVarNameInTable="columnVAT" msprop:Generator_ColumnPropNameInTable="VATColumn" type="xs:decimal" minOccurs="0" />
-              <xs:element name="BRUTTO" msprop:Generator_UserColumnName="BRUTTO" msprop:Generator_ColumnPropNameInRow="BRUTTO" msprop:Generator_ColumnVarNameInTable="columnBRUTTO" msprop:Generator_ColumnPropNameInTable="BRUTTOColumn" type="xs:decimal" minOccurs="0" />
-              <xs:element name="TYTUL" msprop:Generator_UserColumnName="TYTUL" msprop:Generator_ColumnPropNameInRow="TYTUL" msprop:Generator_ColumnVarNameInTable="columnTYTUL" msprop:Generator_ColumnPropNameInTable="TYTULColumn" type="xs:short" minOccurs="0" />
-              <xs:element name="NR_WYDANIA" msprop:Generator_UserColumnName="NR_WYDANIA" msprop:Generator_ColumnPropNameInRow="NR_WYDANIA" msprop:Generator_ColumnVarNameInTable="columnNR_WYDANIA" msprop:Generator_ColumnPropNameInTable="NR_WYDANIAColumn" type="xs:short" minOccurs="0" />
-              <xs:element name="TYP" msprop:Generator_UserColumnName="TYP" msprop:Generator_ColumnPropNameInRow="TYP" msprop:Generator_ColumnVarNameInTable="columnTYP" msprop:Generator_ColumnPropNameInTable="TYPColumn" type="xs:short" minOccurs="0" />
-              <xs:element name="PODTYP" msprop:Generator_UserColumnName="PODTYP" msprop:Generator_ColumnPropNameInRow="PODTYP" msprop:Generator_ColumnVarNameInTable="columnPODTYP" msprop:Generator_ColumnPropNameInTable="PODTYPColumn" type="xs:short" minOccurs="0" />
-            </xs:sequence>
-          </xs:complexType>
-        </xs:element>
-        <xs:element name="Proforma" msprop:Generator_UserTableName="Proforma" msprop:Generator_RowDeletedName="ProformaRowDeleted" msprop:Generator_RowChangedName="ProformaRowChanged" msprop:Generator_RowClassName="ProformaRow" msprop:Generator_RowChangingName="ProformaRowChanging" msprop:Generator_RowEvArgName="ProformaRowChangeEvent" msprop:Generator_RowEvHandlerName="ProformaRowChangeEventHandler" msprop:Generator_TableClassName="ProformaDataTable" msprop:Generator_TableVarName="tableProforma" msprop:Generator_RowDeletingName="ProformaRowDeleting" msprop:Generator_TablePropName="Proforma">
-          <xs:complexType>
-            <xs:sequence>
-              <xs:element name="ID_x0020_REKLAMY" msprop:Generator_UserColumnName="ID REKLAMY" msprop:Generator_ColumnVarNameInTable="columnID_REKLAMY" msprop:Generator_ColumnPropNameInRow="ID_REKLAMY" msprop:Generator_ColumnPropNameInTable="ID_REKLAMYColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="10" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="ID_FAKTURY" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="ID_FAKTURY" msprop:Generator_ColumnVarNameInTable="columnID_FAKTURY" msprop:Generator_ColumnPropNameInRow="ID_FAKTURY" msprop:Generator_ColumnPropNameInTable="ID_FAKTURYColumn" type="xs:int" />
-              <xs:element name="NUMER" msprop:Generator_UserColumnName="NUMER" msprop:Generator_ColumnVarNameInTable="columnNUMER" msprop:Generator_ColumnPropNameInRow="NUMER" msprop:Generator_ColumnPropNameInTable="NUMERColumn" type="xs:int" minOccurs="0" />
-              <xs:element name="NUMER_ROZ" msprop:Generator_UserColumnName="NUMER_ROZ" msprop:Generator_ColumnVarNameInTable="columnNUMER_ROZ" msprop:Generator_ColumnPropNameInRow="NUMER_ROZ" msprop:Generator_ColumnPropNameInTable="NUMER_ROZColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="8" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="NUMER_ROK" msprop:Generator_UserColumnName="NUMER_ROK" msprop:Generator_ColumnVarNameInTable="columnNUMER_ROK" msprop:Generator_ColumnPropNameInRow="NUMER_ROK" msprop:Generator_ColumnPropNameInTable="NUMER_ROKColumn" type="xs:int" minOccurs="0" />
-              <xs:element name="DATA_WYSTAWIENIA" msprop:Generator_UserColumnName="DATA_WYSTAWIENIA" msprop:Generator_ColumnVarNameInTable="columnDATA_WYSTAWIENIA" msprop:Generator_ColumnPropNameInRow="DATA_WYSTAWIENIA" msprop:Generator_ColumnPropNameInTable="DATA_WYSTAWIENIAColumn" type="xs:dateTime" minOccurs="0" />
-              <xs:element name="MIEJSCOWOSC_WYSTAWIENIA" msprop:Generator_UserColumnName="MIEJSCOWOSC_WYSTAWIENIA" msprop:Generator_ColumnVarNameInTable="columnMIEJSCOWOSC_WYSTAWIENIA" msprop:Generator_ColumnPropNameInRow="MIEJSCOWOSC_WYSTAWIENIA" msprop:Generator_ColumnPropNameInTable="MIEJSCOWOSC_WYSTAWIENIAColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="30" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="ID_SPRZEDAWCY" msprop:Generator_UserColumnName="ID_SPRZEDAWCY" msprop:Generator_ColumnVarNameInTable="columnID_SPRZEDAWCY" msprop:Generator_ColumnPropNameInRow="ID_SPRZEDAWCY" msprop:Generator_ColumnPropNameInTable="ID_SPRZEDAWCYColumn" type="xs:int" minOccurs="0" />
-              <xs:element name="ID_NABYWCY" msprop:Generator_UserColumnName="ID_NABYWCY" msprop:Generator_ColumnVarNameInTable="columnID_NABYWCY" msprop:Generator_ColumnPropNameInRow="ID_NABYWCY" msprop:Generator_ColumnPropNameInTable="ID_NABYWCYColumn" type="xs:int" minOccurs="0" />
-              <xs:element name="DATA_SPRZEDAZY" msprop:Generator_UserColumnName="DATA_SPRZEDAZY" msprop:Generator_ColumnVarNameInTable="columnDATA_SPRZEDAZY" msprop:Generator_ColumnPropNameInRow="DATA_SPRZEDAZY" msprop:Generator_ColumnPropNameInTable="DATA_SPRZEDAZYColumn" type="xs:dateTime" minOccurs="0" />
-              <xs:element name="PODPIS_WYSTAWIL" msprop:Generator_UserColumnName="PODPIS_WYSTAWIL" msprop:Generator_ColumnVarNameInTable="columnPODPIS_WYSTAWIL" msprop:Generator_ColumnPropNameInRow="PODPIS_WYSTAWIL" msprop:Generator_ColumnPropNameInTable="PODPIS_WYSTAWILColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="30" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="PODPIS_ODEBRAL" msprop:Generator_UserColumnName="PODPIS_ODEBRAL" msprop:Generator_ColumnVarNameInTable="columnPODPIS_ODEBRAL" msprop:Generator_ColumnPropNameInRow="PODPIS_ODEBRAL" msprop:Generator_ColumnPropNameInTable="PODPIS_ODEBRALColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="30" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="opis" msprop:Generator_UserColumnName="opis" msprop:Generator_ColumnVarNameInTable="columnopis" msprop:Generator_ColumnPropNameInRow="opis" msprop:Generator_ColumnPropNameInTable="opisColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="1073741823" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="SPOSOB_ZAPLATY" msprop:Generator_UserColumnName="SPOSOB_ZAPLATY" msprop:Generator_ColumnVarNameInTable="columnSPOSOB_ZAPLATY" msprop:Generator_ColumnPropNameInRow="SPOSOB_ZAPLATY" msprop:Generator_ColumnPropNameInTable="SPOSOB_ZAPLATYColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="20" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="TERMIN_ZAPLATY" msprop:Generator_UserColumnName="TERMIN_ZAPLATY" msprop:Generator_ColumnVarNameInTable="columnTERMIN_ZAPLATY" msprop:Generator_ColumnPropNameInRow="TERMIN_ZAPLATY" msprop:Generator_ColumnPropNameInTable="TERMIN_ZAPLATYColumn" type="xs:dateTime" minOccurs="0" />
-              <xs:element name="ZAPLACONO" msprop:Generator_UserColumnName="ZAPLACONO" msprop:Generator_ColumnVarNameInTable="columnZAPLACONO" msprop:Generator_ColumnPropNameInRow="ZAPLACONO" msprop:Generator_ColumnPropNameInTable="ZAPLACONOColumn" type="xs:boolean" minOccurs="0" />
-              <xs:element name="BYL_WYDRUK" msprop:Generator_UserColumnName="BYL_WYDRUK" msprop:Generator_ColumnVarNameInTable="columnBYL_WYDRUK" msprop:Generator_ColumnPropNameInRow="BYL_WYDRUK" msprop:Generator_ColumnPropNameInTable="BYL_WYDRUKColumn" type="xs:boolean" minOccurs="0" />
-              <xs:element name="NABYWCA_ADRES" msprop:Generator_UserColumnName="NABYWCA_ADRES" msprop:Generator_ColumnVarNameInTable="columnNABYWCA_ADRES" msprop:Generator_ColumnPropNameInRow="NABYWCA_ADRES" msprop:Generator_ColumnPropNameInTable="NABYWCA_ADRESColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="1073741823" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="SPRZEDAWCA_ADRES" msprop:Generator_UserColumnName="SPRZEDAWCA_ADRES" msprop:Generator_ColumnVarNameInTable="columnSPRZEDAWCA_ADRES" msprop:Generator_ColumnPropNameInRow="SPRZEDAWCA_ADRES" msprop:Generator_ColumnPropNameInTable="SPRZEDAWCA_ADRESColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="1073741823" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="SPRZEDAWCA_NIP" msprop:Generator_UserColumnName="SPRZEDAWCA_NIP" msprop:Generator_ColumnVarNameInTable="columnSPRZEDAWCA_NIP" msprop:Generator_ColumnPropNameInRow="SPRZEDAWCA_NIP" msprop:Generator_ColumnPropNameInTable="SPRZEDAWCA_NIPColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="50" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="NABYWCA_NIP" msprop:Generator_UserColumnName="NABYWCA_NIP" msprop:Generator_ColumnVarNameInTable="columnNABYWCA_NIP" msprop:Generator_ColumnPropNameInRow="NABYWCA_NIP" msprop:Generator_ColumnPropNameInTable="NABYWCA_NIPColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="50" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="FAKTURA_TYP" msprop:Generator_UserColumnName="FAKTURA_TYP" msprop:Generator_ColumnVarNameInTable="columnFAKTURA_TYP" msprop:Generator_ColumnPropNameInRow="FAKTURA_TYP" msprop:Generator_ColumnPropNameInTable="FAKTURA_TYPColumn" type="xs:short" minOccurs="0" />
-              <xs:element name="FAKTURA_PODTYP" msprop:Generator_UserColumnName="FAKTURA_PODTYP" msprop:Generator_ColumnVarNameInTable="columnFAKTURA_PODTYP" msprop:Generator_ColumnPropNameInRow="FAKTURA_PODTYP" msprop:Generator_ColumnPropNameInTable="FAKTURA_PODTYPColumn" type="xs:short" minOccurs="0" />
-              <xs:element name="ID_KONTA" msprop:Generator_UserColumnName="ID_KONTA" msprop:Generator_ColumnVarNameInTable="columnID_KONTA" msprop:Generator_ColumnPropNameInRow="ID_KONTA" msprop:Generator_ColumnPropNameInTable="ID_KONTAColumn" type="xs:short" minOccurs="0" />
-              <xs:element name="EKSPORT" msprop:Generator_UserColumnName="EKSPORT" msprop:Generator_ColumnVarNameInTable="columnEKSPORT" msprop:Generator_ColumnPropNameInRow="EKSPORT" msprop:Generator_ColumnPropNameInTable="EKSPORTColumn" type="xs:boolean" />
-              <xs:element name="EXPORTED" msprop:Generator_UserColumnName="EXPORTED" msprop:Generator_ColumnVarNameInTable="columnEXPORTED" msprop:Generator_ColumnPropNameInRow="EXPORTED" msprop:Generator_ColumnPropNameInTable="EXPORTEDColumn" type="xs:boolean" />
-              <xs:element name="ID_TYTUL" msprop:Generator_UserColumnName="ID_TYTUL" msprop:Generator_ColumnVarNameInTable="columnID_TYTUL" msprop:Generator_ColumnPropNameInRow="ID_TYTUL" msprop:Generator_ColumnPropNameInTable="ID_TYTULColumn" type="xs:short" minOccurs="0" />
-              <xs:element name="EXPORTED_DATA" msprop:Generator_UserColumnName="EXPORTED_DATA" msprop:Generator_ColumnVarNameInTable="columnEXPORTED_DATA" msprop:Generator_ColumnPropNameInRow="EXPORTED_DATA" msprop:Generator_ColumnPropNameInTable="EXPORTED_DATAColumn" type="xs:dateTime" minOccurs="0" />
-              <xs:element name="suma_zaplat" msprop:Generator_UserColumnName="suma_zaplat" msprop:Generator_ColumnVarNameInTable="columnsuma_zaplat" msprop:Generator_ColumnPropNameInRow="suma_zaplat" msprop:Generator_ColumnPropNameInTable="suma_zaplatColumn" type="xs:decimal" minOccurs="0" />
-              <xs:element name="ID_FK_KOR" msprop:Generator_UserColumnName="ID_FK_KOR" msprop:Generator_ColumnVarNameInTable="columnID_FK_KOR" msprop:Generator_ColumnPropNameInRow="ID_FK_KOR" msprop:Generator_ColumnPropNameInTable="ID_FK_KORColumn" type="xs:int" minOccurs="0" />
-              <xs:element name="KOREKTA" msprop:Generator_UserColumnName="KOREKTA" msprop:Generator_ColumnVarNameInTable="columnKOREKTA" msprop:Generator_ColumnPropNameInRow="KOREKTA" msprop:Generator_ColumnPropNameInTable="KOREKTAColumn" type="xs:unsignedByte" />
-              <xs:element name="zaplata_data" msprop:Generator_UserColumnName="zaplata_data" msprop:Generator_ColumnVarNameInTable="columnzaplata_data" msprop:Generator_ColumnPropNameInRow="zaplata_data" msprop:Generator_ColumnPropNameInTable="zaplata_dataColumn" type="xs:dateTime" minOccurs="0" />
-              <xs:element name="zaplata_opis" msprop:Generator_UserColumnName="zaplata_opis" msprop:Generator_ColumnVarNameInTable="columnzaplata_opis" msprop:Generator_ColumnPropNameInRow="zaplata_opis" msprop:Generator_ColumnPropNameInTable="zaplata_opisColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="50" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="Zaliczka_Brutto" msprop:Generator_UserColumnName="Zaliczka_Brutto" msprop:Generator_ColumnVarNameInTable="columnZaliczka_Brutto" msprop:Generator_ColumnPropNameInRow="Zaliczka_Brutto" msprop:Generator_ColumnPropNameInTable="Zaliczka_BruttoColumn" type="xs:decimal" minOccurs="0" />
-              <xs:element name="Zaliczka_Data" msprop:Generator_UserColumnName="Zaliczka_Data" msprop:Generator_ColumnVarNameInTable="columnZaliczka_Data" msprop:Generator_ColumnPropNameInRow="Zaliczka_Data" msprop:Generator_ColumnPropNameInTable="Zaliczka_DataColumn" type="xs:dateTime" minOccurs="0" />
-              <xs:element name="waluta_brutto" msprop:Generator_UserColumnName="waluta_brutto" msprop:Generator_ColumnVarNameInTable="columnwaluta_brutto" msprop:Generator_ColumnPropNameInRow="waluta_brutto" msprop:Generator_ColumnPropNameInTable="waluta_bruttoColumn" type="xs:double" minOccurs="0" />
-              <xs:element name="waluta_miano" msprop:Generator_UserColumnName="waluta_miano" msprop:Generator_ColumnVarNameInTable="columnwaluta_miano" msprop:Generator_ColumnPropNameInRow="waluta_miano" msprop:Generator_ColumnPropNameInTable="waluta_mianoColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="4" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="waluta_kurs" msprop:Generator_UserColumnName="waluta_kurs" msprop:Generator_ColumnVarNameInTable="columnwaluta_kurs" msprop:Generator_ColumnPropNameInRow="waluta_kurs" msprop:Generator_ColumnPropNameInTable="waluta_kursColumn" type="xs:double" minOccurs="0" />
-              <xs:element name="waluta_przelicznik" msprop:Generator_UserColumnName="waluta_przelicznik" msprop:Generator_ColumnVarNameInTable="columnwaluta_przelicznik" msprop:Generator_ColumnPropNameInRow="waluta_przelicznik" msprop:Generator_ColumnPropNameInTable="waluta_przelicznikColumn" type="xs:int" minOccurs="0" />
-              <xs:element name="waluta_kurs_z_dnia" msprop:Generator_UserColumnName="waluta_kurs_z_dnia" msprop:Generator_ColumnVarNameInTable="columnwaluta_kurs_z_dnia" msprop:Generator_ColumnPropNameInRow="waluta_kurs_z_dnia" msprop:Generator_ColumnPropNameInTable="waluta_kurs_z_dniaColumn" type="xs:dateTime" minOccurs="0" />
-              <xs:element name="waluta_tabela_nr" msprop:Generator_UserColumnName="waluta_tabela_nr" msprop:Generator_ColumnVarNameInTable="columnwaluta_tabela_nr" msprop:Generator_ColumnPropNameInRow="waluta_tabela_nr" msprop:Generator_ColumnPropNameInTable="waluta_tabela_nrColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="15" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="KONTO" msprop:Generator_UserColumnName="KONTO" msprop:Generator_ColumnVarNameInTable="columnKONTO" msprop:Generator_ColumnPropNameInRow="KONTO" msprop:Generator_ColumnPropNameInTable="KONTOColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="500" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="HASÅO_x0020_REKLAMOWE" msprop:Generator_UserColumnName="HASÅO REKLAMOWE" msprop:Generator_ColumnVarNameInTable="columnHASÅO_REKLAMOWE" msprop:Generator_ColumnPropNameInRow="HASÅO_REKLAMOWE" msprop:Generator_ColumnPropNameInTable="HASÅO_REKLAMOWEColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="100" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="RejestrFaktur_Symbol" msprop:Generator_UserColumnName="RejestrFaktur_Symbol" msprop:Generator_ColumnVarNameInTable="columnRejestrFaktur_Symbol" msprop:Generator_ColumnPropNameInRow="RejestrFaktur_Symbol" msprop:Generator_ColumnPropNameInTable="RejestrFaktur_SymbolColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="5" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="Adres_Kor" msprop:Generator_UserColumnName="Adres_Kor" msprop:Generator_ColumnVarNameInTable="columnAdres_Kor" msprop:Generator_ColumnPropNameInRow="Adres_Kor" msprop:Generator_ColumnPropNameInTable="Adres_KorColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="200" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="Adres_Kor_Agencji" msprop:Generator_UserColumnName="Adres_Kor_Agencji" msprop:Generator_ColumnPropNameInRow="Adres_Kor_Agencji" msprop:Generator_ColumnVarNameInTable="columnAdres_Kor_Agencji" msprop:Generator_ColumnPropNameInTable="Adres_Kor_AgencjiColumn" minOccurs="0">
+              <xs:element name="Adres_Kor_Agencji" msprop:Generator_UserColumnName="Adres_Kor_Agencji" msprop:Generator_ColumnVarNameInTable="columnAdres_Kor_Agencji" msprop:Generator_ColumnPropNameInRow="Adres_Kor_Agencji" msprop:Generator_ColumnPropNameInTable="Adres_Kor_AgencjiColumn" minOccurs="0">
                 <xs:simpleType>
                   <xs:restriction base="xs:string">
@@ -771,4 +773,218 @@
         </xs:element>
         <xs:element name="Zamowienie" msprop:Generator_UserTableName="Zamowienie" msprop:Generator_RowDeletedName="ZamowienieRowDeleted" msprop:Generator_RowChangedName="ZamowienieRowChanged" msprop:Generator_RowClassName="ZamowienieRow" msprop:Generator_RowChangingName="ZamowienieRowChanging" msprop:Generator_RowEvArgName="ZamowienieRowChangeEvent" msprop:Generator_RowEvHandlerName="ZamowienieRowChangeEventHandler" msprop:Generator_TableClassName="ZamowienieDataTable" msprop:Generator_TableVarName="tableZamowienie" msprop:Generator_RowDeletingName="ZamowienieRowDeleting" msprop:Generator_TablePropName="Zamowienie">
+          <xs:complexType>
+            <xs:sequence>
+              <xs:element name="ID_x0020_REKLAMY" msprop:Generator_UserColumnName="ID REKLAMY" msprop:Generator_ColumnVarNameInTable="columnID_REKLAMY" msprop:Generator_ColumnPropNameInRow="ID_REKLAMY" msprop:Generator_ColumnPropNameInTable="ID_REKLAMYColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="10" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="TYTUÅ" msprop:Generator_UserColumnName="TYTUÅ" msprop:Generator_ColumnVarNameInTable="columnTYTUÅ" msprop:Generator_ColumnPropNameInRow="TYTUÅ" msprop:Generator_ColumnPropNameInTable="TYTUÅColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="5" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="STRONA" msprop:Generator_UserColumnName="STRONA" msprop:Generator_ColumnVarNameInTable="columnSTRONA" msprop:Generator_ColumnPropNameInRow="STRONA" msprop:Generator_ColumnPropNameInTable="STRONAColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="25" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="CENA_x0020_JEDN" msprop:Generator_UserColumnName="CENA JEDN" msprop:Generator_ColumnVarNameInTable="columnCENA_JEDN" msprop:Generator_ColumnPropNameInRow="CENA_JEDN" msprop:Generator_ColumnPropNameInTable="CENA_JEDNColumn" type="xs:double" minOccurs="0" />
+              <xs:element name="SZER" msprop:Generator_UserColumnName="SZER" msprop:Generator_ColumnVarNameInTable="columnSZER" msprop:Generator_ColumnPropNameInRow="SZER" msprop:Generator_ColumnPropNameInTable="SZERColumn" type="xs:double" minOccurs="0" />
+              <xs:element name="WYS" msprop:Generator_UserColumnName="WYS" msprop:Generator_ColumnVarNameInTable="columnWYS" msprop:Generator_ColumnPropNameInRow="WYS" msprop:Generator_ColumnPropNameInTable="WYSColumn" type="xs:double" minOccurs="0" />
+              <xs:element name="DATA_x0020_ZAMÃWIENIA" msprop:Generator_UserColumnName="DATA ZAMÃWIENIA" msprop:Generator_ColumnVarNameInTable="columnDATA_ZAMÃWIENIA" msprop:Generator_ColumnPropNameInRow="DATA_ZAMÃWIENIA" msprop:Generator_ColumnPropNameInTable="DATA_ZAMÃWIENIAColumn" type="xs:dateTime" minOccurs="0" />
+              <xs:element name="KOLOR" msprop:Generator_UserColumnName="KOLOR" msprop:Generator_ColumnVarNameInTable="columnKOLOR" msprop:Generator_ColumnPropNameInRow="KOLOR" msprop:Generator_ColumnPropNameInTable="KOLORColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="5" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="RABAT" msprop:Generator_UserColumnName="RABAT" msprop:Generator_ColumnVarNameInTable="columnRABAT" msprop:Generator_ColumnPropNameInRow="RABAT" msprop:Generator_ColumnPropNameInTable="RABATColumn" type="xs:double" minOccurs="0" />
+              <xs:element name="RABAT_x0020_WARTOÅÄ" msprop:Generator_UserColumnName="RABAT WARTOÅÄ" msprop:Generator_ColumnVarNameInTable="columnRABAT_WARTOÅÄ" msprop:Generator_ColumnPropNameInRow="RABAT_WARTOÅÄ" msprop:Generator_ColumnPropNameInTable="RABAT_WARTOÅÄColumn" type="xs:double" minOccurs="0" />
+              <xs:element name="KROTNOÅÄ" msprop:Generator_UserColumnName="KROTNOÅÄ" msprop:Generator_ColumnVarNameInTable="columnKROTNOÅÄ" msprop:Generator_ColumnPropNameInRow="KROTNOÅÄ" msprop:Generator_ColumnPropNameInTable="KROTNOÅÄColumn" type="xs:short" minOccurs="0" />
+              <xs:element name="NETTO" msprop:Generator_UserColumnName="NETTO" msprop:Generator_ColumnVarNameInTable="columnNETTO" msprop:Generator_ColumnPropNameInRow="NETTO" msprop:Generator_ColumnPropNameInTable="NETTOColumn" type="xs:double" minOccurs="0" />
+              <xs:element name="VAT" msprop:Generator_UserColumnName="VAT" msprop:Generator_ColumnVarNameInTable="columnVAT" msprop:Generator_ColumnPropNameInRow="VAT" msprop:Generator_ColumnPropNameInTable="VATColumn" type="xs:double" minOccurs="0" />
+              <xs:element name="PVAT" msprop:Generator_UserColumnName="PVAT" msprop:Generator_ColumnVarNameInTable="columnPVAT" msprop:Generator_ColumnPropNameInRow="PVAT" msprop:Generator_ColumnPropNameInTable="PVATColumn" type="xs:double" minOccurs="0" />
+              <xs:element name="INFO" msprop:Generator_UserColumnName="INFO" msprop:Generator_ColumnVarNameInTable="columnINFO" msprop:Generator_ColumnPropNameInRow="INFO" msprop:Generator_ColumnPropNameInTable="INFOColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="1000" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="BRUTTO" msprop:Generator_UserColumnName="BRUTTO" msprop:Generator_ColumnVarNameInTable="columnBRUTTO" msprop:Generator_ColumnPropNameInRow="BRUTTO" msprop:Generator_ColumnPropNameInTable="BRUTTOColumn" type="xs:double" minOccurs="0" />
+              <xs:element name="ImiÄ" msprop:Generator_UserColumnName="ImiÄ" msprop:Generator_ColumnVarNameInTable="columnImiÄ" msprop:Generator_ColumnPropNameInRow="ImiÄ" msprop:Generator_ColumnPropNameInTable="ImiÄColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="50" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="Nazwisko" msprop:Generator_UserColumnName="Nazwisko" msprop:Generator_ColumnVarNameInTable="columnNazwisko" msprop:Generator_ColumnPropNameInRow="Nazwisko" msprop:Generator_ColumnPropNameInTable="NazwiskoColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="50" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="Adres_Fkatura" msprop:Generator_UserColumnName="Adres_Fkatura" msprop:Generator_ColumnVarNameInTable="columnAdres_Fkatura" msprop:Generator_ColumnPropNameInRow="Adres_Fkatura" msprop:Generator_ColumnPropNameInTable="Adres_FkaturaColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="200" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="Nip" msprop:Generator_UserColumnName="Nip" msprop:Generator_ColumnVarNameInTable="columnNip" msprop:Generator_ColumnPropNameInRow="Nip" msprop:Generator_ColumnPropNameInTable="NipColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="50" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="ulica" msprop:Generator_UserColumnName="ulica" msprop:Generator_ColumnVarNameInTable="columnulica" msprop:Generator_ColumnPropNameInRow="ulica" msprop:Generator_ColumnPropNameInTable="ulicaColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="50" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="kod" msprop:Generator_UserColumnName="kod" msprop:Generator_ColumnVarNameInTable="columnkod" msprop:Generator_ColumnPropNameInRow="kod" msprop:Generator_ColumnPropNameInTable="kodColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="50" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="miasto" msprop:Generator_UserColumnName="miasto" msprop:Generator_ColumnVarNameInTable="columnmiasto" msprop:Generator_ColumnPropNameInRow="miasto" msprop:Generator_ColumnPropNameInTable="miastoColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="50" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="telefon" msprop:Generator_UserColumnName="telefon" msprop:Generator_ColumnVarNameInTable="columntelefon" msprop:Generator_ColumnPropNameInRow="telefon" msprop:Generator_ColumnPropNameInTable="telefonColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="50" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="fax" msprop:Generator_UserColumnName="fax" msprop:Generator_ColumnVarNameInTable="columnfax" msprop:Generator_ColumnPropNameInRow="fax" msprop:Generator_ColumnPropNameInTable="faxColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="50" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="FAKTURA_x0020_WYSTAWIONO" msprop:Generator_UserColumnName="FAKTURA WYSTAWIONO" msprop:Generator_ColumnVarNameInTable="columnFAKTURA_WYSTAWIONO" msprop:Generator_ColumnPropNameInRow="FAKTURA_WYSTAWIONO" msprop:Generator_ColumnPropNameInTable="FAKTURA_WYSTAWIONOColumn" type="xs:boolean" minOccurs="0" />
+              <xs:element name="KONTO" msprop:Generator_UserColumnName="KONTO" msprop:Generator_ColumnVarNameInTable="columnKONTO" msprop:Generator_ColumnPropNameInRow="KONTO" msprop:Generator_ColumnPropNameInTable="KONTOColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="500" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="zam_notatka" msprop:Generator_UserColumnName="zam_notatka" msprop:Generator_ColumnVarNameInTable="columnzam_notatka" msprop:Generator_ColumnPropNameInRow="zam_notatka" msprop:Generator_ColumnPropNameInTable="zam_notatkaColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="200" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="Brutto_Euro" msprop:Generator_UserColumnName="Brutto_Euro" msprop:Generator_ColumnPropNameInRow="Brutto_Euro" msprop:Generator_ColumnVarNameInTable="columnBrutto_Euro" msprop:Generator_ColumnPropNameInTable="Brutto_EuroColumn" type="xs:double" minOccurs="0" />
+              <xs:element name="Brutto_Euro_Miano" msprop:Generator_UserColumnName="Brutto_Euro_Miano" msprop:Generator_ColumnPropNameInRow="Brutto_Euro_Miano" msprop:Generator_ColumnVarNameInTable="columnBrutto_Euro_Miano" msprop:Generator_ColumnPropNameInTable="Brutto_Euro_MianoColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="4" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="TERMIN_ZAPLATY" msprop:Generator_UserColumnName="TERMIN_ZAPLATY" msprop:Generator_ColumnPropNameInRow="TERMIN_ZAPLATY" msprop:Generator_ColumnVarNameInTable="columnTERMIN_ZAPLATY" msprop:Generator_ColumnPropNameInTable="TERMIN_ZAPLATYColumn" type="xs:dateTime" minOccurs="0" />
+              <xs:element name="SPOSOB_ZAPLATY" msprop:Generator_UserColumnName="SPOSOB_ZAPLATY" msprop:Generator_ColumnPropNameInRow="SPOSOB_ZAPLATY" msprop:Generator_ColumnVarNameInTable="columnSPOSOB_ZAPLATY" msprop:Generator_ColumnPropNameInTable="SPOSOB_ZAPLATYColumn" type="xs:unsignedByte" minOccurs="0" />
+              <xs:element name="NUMER" msprop:Generator_UserColumnName="NUMER" msprop:Generator_ColumnPropNameInRow="NUMER" msprop:Generator_ColumnVarNameInTable="columnNUMER" msprop:Generator_ColumnPropNameInTable="NUMERColumn" type="xs:int" minOccurs="0" />
+              <xs:element name="NUMER_ROZ" msprop:Generator_UserColumnName="NUMER_ROZ" msprop:Generator_ColumnPropNameInRow="NUMER_ROZ" msprop:Generator_ColumnVarNameInTable="columnNUMER_ROZ" msprop:Generator_ColumnPropNameInTable="NUMER_ROZColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="8" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="NUMER_ROK" msprop:Generator_UserColumnName="NUMER_ROK" msprop:Generator_ColumnPropNameInRow="NUMER_ROK" msprop:Generator_ColumnVarNameInTable="columnNUMER_ROK" msprop:Generator_ColumnPropNameInTable="NUMER_ROKColumn" type="xs:int" minOccurs="0" />
+              <xs:element name="DATA_WYSTAWIENIA" msprop:Generator_UserColumnName="DATA_WYSTAWIENIA" msprop:Generator_ColumnPropNameInRow="DATA_WYSTAWIENIA" msprop:Generator_ColumnVarNameInTable="columnDATA_WYSTAWIENIA" msprop:Generator_ColumnPropNameInTable="DATA_WYSTAWIENIAColumn" type="xs:dateTime" minOccurs="0" />
+              <xs:element name="wyroznienie_kwota" msprop:Generator_UserColumnName="wyroznienie_kwota" msprop:Generator_ColumnPropNameInRow="wyroznienie_kwota" msprop:Generator_ColumnVarNameInTable="columnwyroznienie_kwota" msprop:Generator_ColumnPropNameInTable="wyroznienie_kwotaColumn" type="xs:double" minOccurs="0" />
+              <xs:element name="wyroznienie" msprop:Generator_UserColumnName="wyroznienie" msprop:Generator_ColumnPropNameInRow="wyroznienie" msprop:Generator_ColumnVarNameInTable="columnwyroznienie" msprop:Generator_ColumnPropNameInTable="wyroznienieColumn" type="xs:boolean" />
+              <xs:element name="nipKraj" msprop:Generator_UserColumnName="nipKraj" msprop:Generator_ColumnPropNameInRow="nipKraj" msprop:Generator_ColumnVarNameInTable="columnnipKraj" msprop:Generator_ColumnPropNameInTable="nipKrajColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="3" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="MOD_TYP" msprop:Generator_UserColumnName="MOD_TYP" msprop:Generator_ColumnPropNameInRow="MOD_TYP" msprop:Generator_ColumnVarNameInTable="columnMOD_TYP" msprop:Generator_ColumnPropNameInTable="MOD_TYPColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="15" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="adres_biura" msprop:Generator_UserColumnName="adres_biura" msprop:Generator_ColumnVarNameInTable="columnadres_biura" msprop:Generator_ColumnPropNameInRow="adres_biura" msprop:Generator_ColumnPropNameInTable="adres_biuraColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="250" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="emisje" msdata:ReadOnly="true" msprop:Generator_UserColumnName="emisje" msprop:Generator_ColumnPropNameInRow="emisje" msprop:Generator_ColumnVarNameInTable="columnemisje" msprop:Generator_ColumnPropNameInTable="emisjeColumn" type="xs:string" minOccurs="0" />
+            </xs:sequence>
+          </xs:complexType>
+        </xs:element>
+        <xs:element name="emisje" msprop:Generator_UserTableName="emisje" msprop:Generator_RowDeletedName="emisjeRowDeleted" msprop:Generator_RowChangedName="emisjeRowChanged" msprop:Generator_RowClassName="emisjeRow" msprop:Generator_RowChangingName="emisjeRowChanging" msprop:Generator_RowEvArgName="emisjeRowChangeEvent" msprop:Generator_RowEvHandlerName="emisjeRowChangeEventHandler" msprop:Generator_TableClassName="emisjeDataTable" msprop:Generator_TableVarName="tableemisje" msprop:Generator_RowDeletingName="emisjeRowDeleting" msprop:Generator_TablePropName="emisje">
+          <xs:complexType>
+            <xs:sequence>
+              <xs:element name="ID" msprop:Generator_UserColumnName="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" type="xs:string" minOccurs="0" />
+            </xs:sequence>
+          </xs:complexType>
+        </xs:element>
+        <xs:element name="FAKTURA_DETAILS2" msprop:Generator_UserTableName="FAKTURA_DETAILS2" msprop:Generator_RowDeletedName="FAKTURA_DETAILS2RowDeleted" msprop:Generator_RowChangedName="FAKTURA_DETAILS2RowChanged" msprop:Generator_RowClassName="FAKTURA_DETAILS2Row" msprop:Generator_RowChangingName="FAKTURA_DETAILS2RowChanging" msprop:Generator_RowEvArgName="FAKTURA_DETAILS2RowChangeEvent" msprop:Generator_RowEvHandlerName="FAKTURA_DETAILS2RowChangeEventHandler" msprop:Generator_TableClassName="FAKTURA_DETAILS2DataTable" msprop:Generator_TableVarName="tableFAKTURA_DETAILS2" msprop:Generator_RowDeletingName="FAKTURA_DETAILS2RowDeleting" msprop:Generator_TablePropName="FAKTURA_DETAILS2">
+          <xs:complexType>
+            <xs:sequence>
+              <xs:element name="JM" msprop:Generator_UserColumnName="JM" msprop:Generator_ColumnPropNameInRow="JM" msprop:Generator_ColumnVarNameInTable="columnJM" msprop:Generator_ColumnPropNameInTable="JMColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="5" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="ILOSC" msdata:ReadOnly="true" msprop:Generator_UserColumnName="ILOSC" msprop:Generator_ColumnPropNameInRow="ILOSC" msprop:Generator_ColumnVarNameInTable="columnILOSC" msprop:Generator_ColumnPropNameInTable="ILOSCColumn" type="xs:int" minOccurs="0" />
+              <xs:element name="NETTO" msdata:ReadOnly="true" msprop:Generator_UserColumnName="NETTO" msprop:Generator_ColumnPropNameInRow="NETTO" msprop:Generator_ColumnVarNameInTable="columnNETTO" msprop:Generator_ColumnPropNameInTable="NETTOColumn" type="xs:decimal" minOccurs="0" />
+              <xs:element name="S_VAT" msprop:Generator_UserColumnName="S_VAT" msprop:Generator_ColumnPropNameInRow="S_VAT" msprop:Generator_ColumnVarNameInTable="columnS_VAT" msprop:Generator_ColumnPropNameInTable="S_VATColumn" type="xs:double" minOccurs="0" />
+              <xs:element name="BRUTTO" msdata:ReadOnly="true" msprop:Generator_UserColumnName="BRUTTO" msprop:Generator_ColumnPropNameInRow="BRUTTO" msprop:Generator_ColumnVarNameInTable="columnBRUTTO" msprop:Generator_ColumnPropNameInTable="BRUTTOColumn" type="xs:decimal" minOccurs="0" />
+              <xs:element name="VAT" msdata:ReadOnly="true" msprop:Generator_UserColumnName="VAT" msprop:Generator_ColumnPropNameInRow="VAT" msprop:Generator_ColumnVarNameInTable="columnVAT" msprop:Generator_ColumnPropNameInTable="VATColumn" type="xs:decimal" minOccurs="0" />
+              <xs:element name="SYMB" msprop:Generator_UserColumnName="SYMB" msprop:Generator_ColumnPropNameInRow="SYMB" msprop:Generator_ColumnVarNameInTable="columnSYMB" msprop:Generator_ColumnPropNameInTable="SYMBColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="5" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="NR_WYDANIA" msprop:Generator_UserColumnName="NR_WYDANIA" msprop:Generator_ColumnVarNameInTable="columnNR_WYDANIA" msprop:Generator_ColumnPropNameInRow="NR_WYDANIA" msprop:Generator_ColumnPropNameInTable="NR_WYDANIAColumn" type="xs:short" minOccurs="0" />
+              <xs:element name="NAZWA_USLUGI" msprop:Generator_UserColumnName="NAZWA_USLUGI" msprop:Generator_ColumnVarNameInTable="columnNAZWA_USLUGI" msprop:Generator_ColumnPropNameInRow="NAZWA_USLUGI" msprop:Generator_ColumnPropNameInTable="NAZWA_USLUGIColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="100" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+            </xs:sequence>
+          </xs:complexType>
+        </xs:element>
+        <xs:element name="Zamowienie2" msprop:Generator_UserTableName="Zamowienie2" msprop:Generator_RowDeletedName="Zamowienie2RowDeleted" msprop:Generator_RowChangedName="Zamowienie2RowChanged" msprop:Generator_RowClassName="Zamowienie2Row" msprop:Generator_RowChangingName="Zamowienie2RowChanging" msprop:Generator_RowEvArgName="Zamowienie2RowChangeEvent" msprop:Generator_RowEvHandlerName="Zamowienie2RowChangeEventHandler" msprop:Generator_TableClassName="Zamowienie2DataTable" msprop:Generator_TableVarName="tableZamowienie2" msprop:Generator_RowDeletingName="Zamowienie2RowDeleting" msprop:Generator_TablePropName="Zamowienie2">
           <xs:complexType>
             <xs:sequence>
@@ -847,4 +1063,11 @@
                 </xs:simpleType>
               </xs:element>
+              <xs:element name="nipKraj" msprop:Generator_UserColumnName="nipKraj" msprop:Generator_ColumnPropNameInRow="nipKraj" msprop:Generator_ColumnVarNameInTable="columnnipKraj" msprop:Generator_ColumnPropNameInTable="nipKrajColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="3" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
               <xs:element name="ulica" msprop:Generator_UserColumnName="ulica" msprop:Generator_ColumnPropNameInRow="ulica" msprop:Generator_ColumnVarNameInTable="columnulica" msprop:Generator_ColumnPropNameInTable="ulicaColumn" minOccurs="0">
                 <xs:simpleType>
@@ -883,4 +1106,6 @@
               </xs:element>
               <xs:element name="FAKTURA_x0020_WYSTAWIONO" msprop:Generator_UserColumnName="FAKTURA WYSTAWIONO" msprop:Generator_ColumnPropNameInRow="FAKTURA_WYSTAWIONO" msprop:Generator_ColumnVarNameInTable="columnFAKTURA_WYSTAWIONO" msprop:Generator_ColumnPropNameInTable="FAKTURA_WYSTAWIONOColumn" type="xs:boolean" minOccurs="0" />
+              <xs:element name="TERMIN_ZAPLATY" msprop:Generator_UserColumnName="TERMIN_ZAPLATY" msprop:Generator_ColumnPropNameInRow="TERMIN_ZAPLATY" msprop:Generator_ColumnVarNameInTable="columnTERMIN_ZAPLATY" msprop:Generator_ColumnPropNameInTable="TERMIN_ZAPLATYColumn" type="xs:dateTime" minOccurs="0" />
+              <xs:element name="SPOSOB_ZAPLATY" msprop:Generator_UserColumnName="SPOSOB_ZAPLATY" msprop:Generator_ColumnPropNameInRow="SPOSOB_ZAPLATY" msprop:Generator_ColumnVarNameInTable="columnSPOSOB_ZAPLATY" msprop:Generator_ColumnPropNameInTable="SPOSOB_ZAPLATYColumn" type="xs:unsignedByte" minOccurs="0" />
               <xs:element name="KONTO" msprop:Generator_UserColumnName="KONTO" msprop:Generator_ColumnPropNameInRow="KONTO" msprop:Generator_ColumnVarNameInTable="columnKONTO" msprop:Generator_ColumnPropNameInTable="KONTOColumn" minOccurs="0">
                 <xs:simpleType>
@@ -890,4 +1115,14 @@
                 </xs:simpleType>
               </xs:element>
+              <xs:element name="NUMER" msprop:Generator_UserColumnName="NUMER" msprop:Generator_ColumnPropNameInRow="NUMER" msprop:Generator_ColumnVarNameInTable="columnNUMER" msprop:Generator_ColumnPropNameInTable="NUMERColumn" type="xs:int" minOccurs="0" />
+              <xs:element name="NUMER_ROZ" msprop:Generator_UserColumnName="NUMER_ROZ" msprop:Generator_ColumnPropNameInRow="NUMER_ROZ" msprop:Generator_ColumnVarNameInTable="columnNUMER_ROZ" msprop:Generator_ColumnPropNameInTable="NUMER_ROZColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="8" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="NUMER_ROK" msprop:Generator_UserColumnName="NUMER_ROK" msprop:Generator_ColumnPropNameInRow="NUMER_ROK" msprop:Generator_ColumnVarNameInTable="columnNUMER_ROK" msprop:Generator_ColumnPropNameInTable="NUMER_ROKColumn" type="xs:int" minOccurs="0" />
+              <xs:element name="DATA_WYSTAWIENIA" msprop:Generator_UserColumnName="DATA_WYSTAWIENIA" msprop:Generator_ColumnPropNameInRow="DATA_WYSTAWIENIA" msprop:Generator_ColumnVarNameInTable="columnDATA_WYSTAWIENIA" msprop:Generator_ColumnPropNameInTable="DATA_WYSTAWIENIAColumn" type="xs:dateTime" minOccurs="0" />
               <xs:element name="zam_notatka" msprop:Generator_UserColumnName="zam_notatka" msprop:Generator_ColumnPropNameInRow="zam_notatka" msprop:Generator_ColumnVarNameInTable="columnzam_notatka" msprop:Generator_ColumnPropNameInTable="zam_notatkaColumn" minOccurs="0">
                 <xs:simpleType>
@@ -897,6 +1132,13 @@
                 </xs:simpleType>
               </xs:element>
-              <xs:element name="Brutto_Euro" msprop:Generator_UserColumnName="Brutto_Euro" msprop:Generator_ColumnVarNameInTable="columnBrutto_Euro" msprop:Generator_ColumnPropNameInRow="Brutto_Euro" msprop:Generator_ColumnPropNameInTable="Brutto_EuroColumn" type="xs:double" minOccurs="0" />
-              <xs:element name="Brutto_Euro_Miano" msprop:Generator_UserColumnName="Brutto_Euro_Miano" msprop:Generator_ColumnVarNameInTable="columnBrutto_Euro_Miano" msprop:Generator_ColumnPropNameInRow="Brutto_Euro_Miano" msprop:Generator_ColumnPropNameInTable="Brutto_Euro_MianoColumn" minOccurs="0">
+              <xs:element name="adres_biura" msprop:Generator_UserColumnName="adres_biura" msprop:Generator_ColumnPropNameInRow="adres_biura" msprop:Generator_ColumnVarNameInTable="columnadres_biura" msprop:Generator_ColumnPropNameInTable="adres_biuraColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="250" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="Brutto_Euro" msprop:Generator_UserColumnName="Brutto_Euro" msprop:Generator_ColumnPropNameInRow="Brutto_Euro" msprop:Generator_ColumnVarNameInTable="columnBrutto_Euro" msprop:Generator_ColumnPropNameInTable="Brutto_EuroColumn" type="xs:double" minOccurs="0" />
+              <xs:element name="Brutto_Euro_Miano" msprop:Generator_UserColumnName="Brutto_Euro_Miano" msprop:Generator_ColumnPropNameInRow="Brutto_Euro_Miano" msprop:Generator_ColumnVarNameInTable="columnBrutto_Euro_Miano" msprop:Generator_ColumnPropNameInTable="Brutto_Euro_MianoColumn" minOccurs="0">
                 <xs:simpleType>
                   <xs:restriction base="xs:string">
@@ -905,26 +1147,7 @@
                 </xs:simpleType>
               </xs:element>
-              <xs:element name="TERMIN_ZAPLATY" msprop:Generator_UserColumnName="TERMIN_ZAPLATY" msprop:Generator_ColumnVarNameInTable="columnTERMIN_ZAPLATY" msprop:Generator_ColumnPropNameInRow="TERMIN_ZAPLATY" msprop:Generator_ColumnPropNameInTable="TERMIN_ZAPLATYColumn" type="xs:dateTime" minOccurs="0" />
-              <xs:element name="SPOSOB_ZAPLATY" msprop:Generator_UserColumnName="SPOSOB_ZAPLATY" msprop:Generator_ColumnVarNameInTable="columnSPOSOB_ZAPLATY" msprop:Generator_ColumnPropNameInRow="SPOSOB_ZAPLATY" msprop:Generator_ColumnPropNameInTable="SPOSOB_ZAPLATYColumn" type="xs:unsignedByte" minOccurs="0" />
-              <xs:element name="NUMER" msprop:Generator_UserColumnName="NUMER" msprop:Generator_ColumnVarNameInTable="columnNUMER" msprop:Generator_ColumnPropNameInRow="NUMER" msprop:Generator_ColumnPropNameInTable="NUMERColumn" type="xs:int" minOccurs="0" />
-              <xs:element name="NUMER_ROZ" msprop:Generator_UserColumnName="NUMER_ROZ" msprop:Generator_ColumnVarNameInTable="columnNUMER_ROZ" msprop:Generator_ColumnPropNameInRow="NUMER_ROZ" msprop:Generator_ColumnPropNameInTable="NUMER_ROZColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="8" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="NUMER_ROK" msprop:Generator_UserColumnName="NUMER_ROK" msprop:Generator_ColumnVarNameInTable="columnNUMER_ROK" msprop:Generator_ColumnPropNameInRow="NUMER_ROK" msprop:Generator_ColumnPropNameInTable="NUMER_ROKColumn" type="xs:int" minOccurs="0" />
-              <xs:element name="DATA_WYSTAWIENIA" msprop:Generator_UserColumnName="DATA_WYSTAWIENIA" msprop:Generator_ColumnVarNameInTable="columnDATA_WYSTAWIENIA" msprop:Generator_ColumnPropNameInRow="DATA_WYSTAWIENIA" msprop:Generator_ColumnPropNameInTable="DATA_WYSTAWIENIAColumn" type="xs:dateTime" minOccurs="0" />
-              <xs:element name="wyroznienie_kwota" msprop:Generator_UserColumnName="wyroznienie_kwota" msprop:Generator_ColumnVarNameInTable="columnwyroznienie_kwota" msprop:Generator_ColumnPropNameInRow="wyroznienie_kwota" msprop:Generator_ColumnPropNameInTable="wyroznienie_kwotaColumn" type="xs:double" minOccurs="0" />
-              <xs:element name="wyroznienie" msprop:Generator_UserColumnName="wyroznienie" msprop:Generator_ColumnVarNameInTable="columnwyroznienie" msprop:Generator_ColumnPropNameInRow="wyroznienie" msprop:Generator_ColumnPropNameInTable="wyroznienieColumn" type="xs:boolean" />
-              <xs:element name="nipKraj" msprop:Generator_UserColumnName="nipKraj" msprop:Generator_ColumnVarNameInTable="columnnipKraj" msprop:Generator_ColumnPropNameInRow="nipKraj" msprop:Generator_ColumnPropNameInTable="nipKrajColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="3" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="MOD_TYP" msprop:Generator_UserColumnName="MOD_TYP" msprop:Generator_ColumnVarNameInTable="columnMOD_TYP" msprop:Generator_ColumnPropNameInRow="MOD_TYP" msprop:Generator_ColumnPropNameInTable="MOD_TYPColumn" minOccurs="0">
+              <xs:element name="wyroznienie_kwota" msprop:Generator_UserColumnName="wyroznienie_kwota" msprop:Generator_ColumnPropNameInRow="wyroznienie_kwota" msprop:Generator_ColumnVarNameInTable="columnwyroznienie_kwota" msprop:Generator_ColumnPropNameInTable="wyroznienie_kwotaColumn" type="xs:double" minOccurs="0" />
+              <xs:element name="wyroznienie" msprop:Generator_UserColumnName="wyroznienie" msprop:Generator_ColumnPropNameInRow="wyroznienie" msprop:Generator_ColumnVarNameInTable="columnwyroznienie" msprop:Generator_ColumnPropNameInTable="wyroznienieColumn" type="xs:boolean" />
+              <xs:element name="MOD_TYP" msprop:Generator_UserColumnName="MOD_TYP" msprop:Generator_ColumnPropNameInRow="MOD_TYP" msprop:Generator_ColumnVarNameInTable="columnMOD_TYP" msprop:Generator_ColumnPropNameInTable="MOD_TYPColumn" minOccurs="0">
                 <xs:simpleType>
                   <xs:restriction base="xs:string">
@@ -933,226 +1156,5 @@
                 </xs:simpleType>
               </xs:element>
-              <xs:element name="adres_biura" msprop:Generator_UserColumnName="adres_biura" msprop:Generator_ColumnPropNameInRow="adres_biura" msprop:Generator_ColumnVarNameInTable="columnadres_biura" msprop:Generator_ColumnPropNameInTable="adres_biuraColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="250" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="emisje" msdata:ReadOnly="true" msprop:Generator_UserColumnName="emisje" msprop:Generator_ColumnVarNameInTable="columnemisje" msprop:Generator_ColumnPropNameInRow="emisje" msprop:Generator_ColumnPropNameInTable="emisjeColumn" type="xs:string" minOccurs="0" />
-            </xs:sequence>
-          </xs:complexType>
-        </xs:element>
-        <xs:element name="emisje" msprop:Generator_UserTableName="emisje" msprop:Generator_RowDeletedName="emisjeRowDeleted" msprop:Generator_RowChangedName="emisjeRowChanged" msprop:Generator_RowClassName="emisjeRow" msprop:Generator_RowChangingName="emisjeRowChanging" msprop:Generator_RowEvArgName="emisjeRowChangeEvent" msprop:Generator_RowEvHandlerName="emisjeRowChangeEventHandler" msprop:Generator_TableClassName="emisjeDataTable" msprop:Generator_TableVarName="tableemisje" msprop:Generator_RowDeletingName="emisjeRowDeleting" msprop:Generator_TablePropName="emisje">
-          <xs:complexType>
-            <xs:sequence>
-              <xs:element name="ID" msprop:Generator_UserColumnName="ID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInTable="IDColumn" type="xs:string" minOccurs="0" />
-            </xs:sequence>
-          </xs:complexType>
-        </xs:element>
-        <xs:element name="FAKTURA_DETAILS2" msprop:Generator_UserTableName="FAKTURA_DETAILS2" msprop:Generator_RowDeletedName="FAKTURA_DETAILS2RowDeleted" msprop:Generator_RowChangedName="FAKTURA_DETAILS2RowChanged" msprop:Generator_RowClassName="FAKTURA_DETAILS2Row" msprop:Generator_RowChangingName="FAKTURA_DETAILS2RowChanging" msprop:Generator_RowEvArgName="FAKTURA_DETAILS2RowChangeEvent" msprop:Generator_RowEvHandlerName="FAKTURA_DETAILS2RowChangeEventHandler" msprop:Generator_TableClassName="FAKTURA_DETAILS2DataTable" msprop:Generator_TableVarName="tableFAKTURA_DETAILS2" msprop:Generator_RowDeletingName="FAKTURA_DETAILS2RowDeleting" msprop:Generator_TablePropName="FAKTURA_DETAILS2">
-          <xs:complexType>
-            <xs:sequence>
-              <xs:element name="JM" msprop:Generator_UserColumnName="JM" msprop:Generator_ColumnVarNameInTable="columnJM" msprop:Generator_ColumnPropNameInRow="JM" msprop:Generator_ColumnPropNameInTable="JMColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="5" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="ILOSC" msdata:ReadOnly="true" msprop:Generator_UserColumnName="ILOSC" msprop:Generator_ColumnVarNameInTable="columnILOSC" msprop:Generator_ColumnPropNameInRow="ILOSC" msprop:Generator_ColumnPropNameInTable="ILOSCColumn" type="xs:int" minOccurs="0" />
-              <xs:element name="NETTO" msdata:ReadOnly="true" msprop:Generator_UserColumnName="NETTO" msprop:Generator_ColumnVarNameInTable="columnNETTO" msprop:Generator_ColumnPropNameInRow="NETTO" msprop:Generator_ColumnPropNameInTable="NETTOColumn" type="xs:decimal" minOccurs="0" />
-              <xs:element name="S_VAT" msprop:Generator_UserColumnName="S_VAT" msprop:Generator_ColumnVarNameInTable="columnS_VAT" msprop:Generator_ColumnPropNameInRow="S_VAT" msprop:Generator_ColumnPropNameInTable="S_VATColumn" type="xs:double" minOccurs="0" />
-              <xs:element name="BRUTTO" msdata:ReadOnly="true" msprop:Generator_UserColumnName="BRUTTO" msprop:Generator_ColumnVarNameInTable="columnBRUTTO" msprop:Generator_ColumnPropNameInRow="BRUTTO" msprop:Generator_ColumnPropNameInTable="BRUTTOColumn" type="xs:decimal" minOccurs="0" />
-              <xs:element name="VAT" msdata:ReadOnly="true" msprop:Generator_UserColumnName="VAT" msprop:Generator_ColumnVarNameInTable="columnVAT" msprop:Generator_ColumnPropNameInRow="VAT" msprop:Generator_ColumnPropNameInTable="VATColumn" type="xs:decimal" minOccurs="0" />
-              <xs:element name="SYMB" msprop:Generator_UserColumnName="SYMB" msprop:Generator_ColumnVarNameInTable="columnSYMB" msprop:Generator_ColumnPropNameInRow="SYMB" msprop:Generator_ColumnPropNameInTable="SYMBColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="5" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="NR_WYDANIA" msprop:Generator_UserColumnName="NR_WYDANIA" msprop:Generator_ColumnPropNameInRow="NR_WYDANIA" msprop:Generator_ColumnVarNameInTable="columnNR_WYDANIA" msprop:Generator_ColumnPropNameInTable="NR_WYDANIAColumn" type="xs:short" minOccurs="0" />
-              <xs:element name="NAZWA_USLUGI" msprop:Generator_UserColumnName="NAZWA_USLUGI" msprop:Generator_ColumnPropNameInRow="NAZWA_USLUGI" msprop:Generator_ColumnVarNameInTable="columnNAZWA_USLUGI" msprop:Generator_ColumnPropNameInTable="NAZWA_USLUGIColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="100" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-            </xs:sequence>
-          </xs:complexType>
-        </xs:element>
-        <xs:element name="Zamowienie2" msprop:Generator_UserTableName="Zamowienie2" msprop:Generator_RowDeletedName="Zamowienie2RowDeleted" msprop:Generator_RowChangedName="Zamowienie2RowChanged" msprop:Generator_RowClassName="Zamowienie2Row" msprop:Generator_RowChangingName="Zamowienie2RowChanging" msprop:Generator_RowEvArgName="Zamowienie2RowChangeEvent" msprop:Generator_RowEvHandlerName="Zamowienie2RowChangeEventHandler" msprop:Generator_TableClassName="Zamowienie2DataTable" msprop:Generator_TableVarName="tableZamowienie2" msprop:Generator_RowDeletingName="Zamowienie2RowDeleting" msprop:Generator_TablePropName="Zamowienie2">
-          <xs:complexType>
-            <xs:sequence>
-              <xs:element name="ID_x0020_REKLAMY" msprop:Generator_UserColumnName="ID REKLAMY" msprop:Generator_ColumnVarNameInTable="columnID_REKLAMY" msprop:Generator_ColumnPropNameInRow="ID_REKLAMY" msprop:Generator_ColumnPropNameInTable="ID_REKLAMYColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="10" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="TYTUÅ" msprop:Generator_UserColumnName="TYTUÅ" msprop:Generator_ColumnVarNameInTable="columnTYTUÅ" msprop:Generator_ColumnPropNameInRow="TYTUÅ" msprop:Generator_ColumnPropNameInTable="TYTUÅColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="5" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="STRONA" msprop:Generator_UserColumnName="STRONA" msprop:Generator_ColumnVarNameInTable="columnSTRONA" msprop:Generator_ColumnPropNameInRow="STRONA" msprop:Generator_ColumnPropNameInTable="STRONAColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="25" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="CENA_x0020_JEDN" msprop:Generator_UserColumnName="CENA JEDN" msprop:Generator_ColumnVarNameInTable="columnCENA_JEDN" msprop:Generator_ColumnPropNameInRow="CENA_JEDN" msprop:Generator_ColumnPropNameInTable="CENA_JEDNColumn" type="xs:double" minOccurs="0" />
-              <xs:element name="SZER" msprop:Generator_UserColumnName="SZER" msprop:Generator_ColumnVarNameInTable="columnSZER" msprop:Generator_ColumnPropNameInRow="SZER" msprop:Generator_ColumnPropNameInTable="SZERColumn" type="xs:double" minOccurs="0" />
-              <xs:element name="WYS" msprop:Generator_UserColumnName="WYS" msprop:Generator_ColumnVarNameInTable="columnWYS" msprop:Generator_ColumnPropNameInRow="WYS" msprop:Generator_ColumnPropNameInTable="WYSColumn" type="xs:double" minOccurs="0" />
-              <xs:element name="DATA_x0020_ZAMÃWIENIA" msprop:Generator_UserColumnName="DATA ZAMÃWIENIA" msprop:Generator_ColumnVarNameInTable="columnDATA_ZAMÃWIENIA" msprop:Generator_ColumnPropNameInRow="DATA_ZAMÃWIENIA" msprop:Generator_ColumnPropNameInTable="DATA_ZAMÃWIENIAColumn" type="xs:dateTime" minOccurs="0" />
-              <xs:element name="KOLOR" msprop:Generator_UserColumnName="KOLOR" msprop:Generator_ColumnVarNameInTable="columnKOLOR" msprop:Generator_ColumnPropNameInRow="KOLOR" msprop:Generator_ColumnPropNameInTable="KOLORColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="5" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="RABAT" msprop:Generator_UserColumnName="RABAT" msprop:Generator_ColumnVarNameInTable="columnRABAT" msprop:Generator_ColumnPropNameInRow="RABAT" msprop:Generator_ColumnPropNameInTable="RABATColumn" type="xs:double" minOccurs="0" />
-              <xs:element name="RABAT_x0020_WARTOÅÄ" msprop:Generator_UserColumnName="RABAT WARTOÅÄ" msprop:Generator_ColumnVarNameInTable="columnRABAT_WARTOÅÄ" msprop:Generator_ColumnPropNameInRow="RABAT_WARTOÅÄ" msprop:Generator_ColumnPropNameInTable="RABAT_WARTOÅÄColumn" type="xs:double" minOccurs="0" />
-              <xs:element name="KROTNOÅÄ" msprop:Generator_UserColumnName="KROTNOÅÄ" msprop:Generator_ColumnVarNameInTable="columnKROTNOÅÄ" msprop:Generator_ColumnPropNameInRow="KROTNOÅÄ" msprop:Generator_ColumnPropNameInTable="KROTNOÅÄColumn" type="xs:short" minOccurs="0" />
-              <xs:element name="NETTO" msprop:Generator_UserColumnName="NETTO" msprop:Generator_ColumnVarNameInTable="columnNETTO" msprop:Generator_ColumnPropNameInRow="NETTO" msprop:Generator_ColumnPropNameInTable="NETTOColumn" type="xs:double" minOccurs="0" />
-              <xs:element name="VAT" msprop:Generator_UserColumnName="VAT" msprop:Generator_ColumnVarNameInTable="columnVAT" msprop:Generator_ColumnPropNameInRow="VAT" msprop:Generator_ColumnPropNameInTable="VATColumn" type="xs:double" minOccurs="0" />
-              <xs:element name="PVAT" msprop:Generator_UserColumnName="PVAT" msprop:Generator_ColumnVarNameInTable="columnPVAT" msprop:Generator_ColumnPropNameInRow="PVAT" msprop:Generator_ColumnPropNameInTable="PVATColumn" type="xs:double" minOccurs="0" />
-              <xs:element name="INFO" msprop:Generator_UserColumnName="INFO" msprop:Generator_ColumnVarNameInTable="columnINFO" msprop:Generator_ColumnPropNameInRow="INFO" msprop:Generator_ColumnPropNameInTable="INFOColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="1000" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="BRUTTO" msprop:Generator_UserColumnName="BRUTTO" msprop:Generator_ColumnVarNameInTable="columnBRUTTO" msprop:Generator_ColumnPropNameInRow="BRUTTO" msprop:Generator_ColumnPropNameInTable="BRUTTOColumn" type="xs:double" minOccurs="0" />
-              <xs:element name="ImiÄ" msprop:Generator_UserColumnName="ImiÄ" msprop:Generator_ColumnVarNameInTable="columnImiÄ" msprop:Generator_ColumnPropNameInRow="ImiÄ" msprop:Generator_ColumnPropNameInTable="ImiÄColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="50" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="Nazwisko" msprop:Generator_UserColumnName="Nazwisko" msprop:Generator_ColumnVarNameInTable="columnNazwisko" msprop:Generator_ColumnPropNameInRow="Nazwisko" msprop:Generator_ColumnPropNameInTable="NazwiskoColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="50" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="Adres_Fkatura" msprop:Generator_UserColumnName="Adres_Fkatura" msprop:Generator_ColumnVarNameInTable="columnAdres_Fkatura" msprop:Generator_ColumnPropNameInRow="Adres_Fkatura" msprop:Generator_ColumnPropNameInTable="Adres_FkaturaColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="200" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="Nip" msprop:Generator_UserColumnName="Nip" msprop:Generator_ColumnVarNameInTable="columnNip" msprop:Generator_ColumnPropNameInRow="Nip" msprop:Generator_ColumnPropNameInTable="NipColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="50" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="nipKraj" msprop:Generator_UserColumnName="nipKraj" msprop:Generator_ColumnVarNameInTable="columnnipKraj" msprop:Generator_ColumnPropNameInRow="nipKraj" msprop:Generator_ColumnPropNameInTable="nipKrajColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="3" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="ulica" msprop:Generator_UserColumnName="ulica" msprop:Generator_ColumnVarNameInTable="columnulica" msprop:Generator_ColumnPropNameInRow="ulica" msprop:Generator_ColumnPropNameInTable="ulicaColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="50" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="kod" msprop:Generator_UserColumnName="kod" msprop:Generator_ColumnVarNameInTable="columnkod" msprop:Generator_ColumnPropNameInRow="kod" msprop:Generator_ColumnPropNameInTable="kodColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="50" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="miasto" msprop:Generator_UserColumnName="miasto" msprop:Generator_ColumnVarNameInTable="columnmiasto" msprop:Generator_ColumnPropNameInRow="miasto" msprop:Generator_ColumnPropNameInTable="miastoColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="50" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="telefon" msprop:Generator_UserColumnName="telefon" msprop:Generator_ColumnVarNameInTable="columntelefon" msprop:Generator_ColumnPropNameInRow="telefon" msprop:Generator_ColumnPropNameInTable="telefonColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="50" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="fax" msprop:Generator_UserColumnName="fax" msprop:Generator_ColumnVarNameInTable="columnfax" msprop:Generator_ColumnPropNameInRow="fax" msprop:Generator_ColumnPropNameInTable="faxColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="50" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="FAKTURA_x0020_WYSTAWIONO" msprop:Generator_UserColumnName="FAKTURA WYSTAWIONO" msprop:Generator_ColumnVarNameInTable="columnFAKTURA_WYSTAWIONO" msprop:Generator_ColumnPropNameInRow="FAKTURA_WYSTAWIONO" msprop:Generator_ColumnPropNameInTable="FAKTURA_WYSTAWIONOColumn" type="xs:boolean" minOccurs="0" />
-              <xs:element name="TERMIN_ZAPLATY" msprop:Generator_UserColumnName="TERMIN_ZAPLATY" msprop:Generator_ColumnVarNameInTable="columnTERMIN_ZAPLATY" msprop:Generator_ColumnPropNameInRow="TERMIN_ZAPLATY" msprop:Generator_ColumnPropNameInTable="TERMIN_ZAPLATYColumn" type="xs:dateTime" minOccurs="0" />
-              <xs:element name="SPOSOB_ZAPLATY" msprop:Generator_UserColumnName="SPOSOB_ZAPLATY" msprop:Generator_ColumnVarNameInTable="columnSPOSOB_ZAPLATY" msprop:Generator_ColumnPropNameInRow="SPOSOB_ZAPLATY" msprop:Generator_ColumnPropNameInTable="SPOSOB_ZAPLATYColumn" type="xs:unsignedByte" minOccurs="0" />
-              <xs:element name="KONTO" msprop:Generator_UserColumnName="KONTO" msprop:Generator_ColumnVarNameInTable="columnKONTO" msprop:Generator_ColumnPropNameInRow="KONTO" msprop:Generator_ColumnPropNameInTable="KONTOColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="500" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="NUMER" msprop:Generator_UserColumnName="NUMER" msprop:Generator_ColumnVarNameInTable="columnNUMER" msprop:Generator_ColumnPropNameInRow="NUMER" msprop:Generator_ColumnPropNameInTable="NUMERColumn" type="xs:int" minOccurs="0" />
-              <xs:element name="NUMER_ROZ" msprop:Generator_UserColumnName="NUMER_ROZ" msprop:Generator_ColumnVarNameInTable="columnNUMER_ROZ" msprop:Generator_ColumnPropNameInRow="NUMER_ROZ" msprop:Generator_ColumnPropNameInTable="NUMER_ROZColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="8" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="NUMER_ROK" msprop:Generator_UserColumnName="NUMER_ROK" msprop:Generator_ColumnVarNameInTable="columnNUMER_ROK" msprop:Generator_ColumnPropNameInRow="NUMER_ROK" msprop:Generator_ColumnPropNameInTable="NUMER_ROKColumn" type="xs:int" minOccurs="0" />
-              <xs:element name="DATA_WYSTAWIENIA" msprop:Generator_UserColumnName="DATA_WYSTAWIENIA" msprop:Generator_ColumnVarNameInTable="columnDATA_WYSTAWIENIA" msprop:Generator_ColumnPropNameInRow="DATA_WYSTAWIENIA" msprop:Generator_ColumnPropNameInTable="DATA_WYSTAWIENIAColumn" type="xs:dateTime" minOccurs="0" />
-              <xs:element name="zam_notatka" msprop:Generator_UserColumnName="zam_notatka" msprop:Generator_ColumnVarNameInTable="columnzam_notatka" msprop:Generator_ColumnPropNameInRow="zam_notatka" msprop:Generator_ColumnPropNameInTable="zam_notatkaColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="200" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="adres_biura" msprop:Generator_UserColumnName="adres_biura" msprop:Generator_ColumnVarNameInTable="columnadres_biura" msprop:Generator_ColumnPropNameInRow="adres_biura" msprop:Generator_ColumnPropNameInTable="adres_biuraColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="250" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="Brutto_Euro" msprop:Generator_UserColumnName="Brutto_Euro" msprop:Generator_ColumnVarNameInTable="columnBrutto_Euro" msprop:Generator_ColumnPropNameInRow="Brutto_Euro" msprop:Generator_ColumnPropNameInTable="Brutto_EuroColumn" type="xs:double" minOccurs="0" />
-              <xs:element name="Brutto_Euro_Miano" msprop:Generator_UserColumnName="Brutto_Euro_Miano" msprop:Generator_ColumnVarNameInTable="columnBrutto_Euro_Miano" msprop:Generator_ColumnPropNameInRow="Brutto_Euro_Miano" msprop:Generator_ColumnPropNameInTable="Brutto_Euro_MianoColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="4" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="wyroznienie_kwota" msprop:Generator_UserColumnName="wyroznienie_kwota" msprop:Generator_ColumnVarNameInTable="columnwyroznienie_kwota" msprop:Generator_ColumnPropNameInRow="wyroznienie_kwota" msprop:Generator_ColumnPropNameInTable="wyroznienie_kwotaColumn" type="xs:double" minOccurs="0" />
-              <xs:element name="wyroznienie" msprop:Generator_UserColumnName="wyroznienie" msprop:Generator_ColumnVarNameInTable="columnwyroznienie" msprop:Generator_ColumnPropNameInRow="wyroznienie" msprop:Generator_ColumnPropNameInTable="wyroznienieColumn" type="xs:boolean" />
-              <xs:element name="MOD_TYP" msprop:Generator_UserColumnName="MOD_TYP" msprop:Generator_ColumnVarNameInTable="columnMOD_TYP" msprop:Generator_ColumnPropNameInRow="MOD_TYP" msprop:Generator_ColumnPropNameInTable="MOD_TYPColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="15" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="emisje" msdata:ReadOnly="true" msprop:Generator_UserColumnName="emisje" msprop:Generator_ColumnVarNameInTable="columnemisje" msprop:Generator_ColumnPropNameInRow="emisje" msprop:Generator_ColumnPropNameInTable="emisjeColumn" minOccurs="0">
+              <xs:element name="emisje" msdata:ReadOnly="true" msprop:Generator_UserColumnName="emisje" msprop:Generator_ColumnPropNameInRow="emisje" msprop:Generator_ColumnVarNameInTable="columnemisje" msprop:Generator_ColumnPropNameInTable="emisjeColumn" minOccurs="0">
                 <xs:simpleType>
                   <xs:restriction base="xs:string">
@@ -1161,5 +1163,5 @@
                 </xs:simpleType>
               </xs:element>
-              <xs:element name="nrZamowienia" msdata:ReadOnly="true" msprop:Generator_UserColumnName="nrZamowienia" msprop:Generator_ColumnVarNameInTable="columnnrZamowienia" msprop:Generator_ColumnPropNameInRow="nrZamowienia" msprop:Generator_ColumnPropNameInTable="nrZamowieniaColumn" minOccurs="0">
+              <xs:element name="nrZamowienia" msdata:ReadOnly="true" msprop:Generator_UserColumnName="nrZamowienia" msprop:Generator_ColumnPropNameInRow="nrZamowienia" msprop:Generator_ColumnVarNameInTable="columnnrZamowienia" msprop:Generator_ColumnPropNameInTable="nrZamowieniaColumn" minOccurs="0">
                 <xs:simpleType>
                   <xs:restriction base="xs:string">
@@ -1168,5 +1170,5 @@
                 </xs:simpleType>
               </xs:element>
-              <xs:element name="rodzajFakturowania" msprop:Generator_UserColumnName="rodzajFakturowania" msprop:Generator_ColumnVarNameInTable="columnrodzajFakturowania" msprop:Generator_ColumnPropNameInRow="rodzajFakturowania" msprop:Generator_ColumnPropNameInTable="rodzajFakturowaniaColumn" type="xs:short" minOccurs="0" />
+              <xs:element name="rodzajFakturowania" msprop:Generator_UserColumnName="rodzajFakturowania" msprop:Generator_ColumnPropNameInRow="rodzajFakturowania" msprop:Generator_ColumnVarNameInTable="columnrodzajFakturowania" msprop:Generator_ColumnPropNameInTable="rodzajFakturowaniaColumn" type="xs:short" minOccurs="0" />
             </xs:sequence>
           </xs:complexType>
Index: Baza Reklam 2 - Faktury/REKLAMADataSet.xsd
===================================================================
--- Baza Reklam 2 - Faktury/REKLAMADataSet.xsd (revision 33)
+++ Baza Reklam 2 - Faktury/REKLAMADataSet.xsd (revision 34)
@@ -1321,6 +1321,6 @@
                 <InsertCommand>
                   <DbCommand CommandType="Text" ModifiedByUser="False">
-                    <CommandText>INSERT INTO [FAKTURY] ([NUMER], [NUMER_ROZ], [NUMER_ROK], [DATA_WYSTAWIENIA], [MIEJSCOWOSC_WYSTAWIENIA], [ID_SPRZEDAWCY], [ID_NABYWCY], [DATA_SPRZEDAZY], [PODPIS_WYSTAWIL], [PODPIS_ODEBRAL], [opis], [SPOSOB_ZAPLATY], [TERMIN_ZAPLATY], [ZAPLACONO], [BYL_WYDRUK], [NABYWCA_ADRES], [SPRZEDAWCA_ADRES], [SPRZEDAWCA_NIP], [NABYWCA_NIP], [FAKTURA_TYP], [FAKTURA_PODTYP], [ID_KONTA], [EKSPORT], [EXPORTED], [ID_TYTUL], [EXPORTED_DATA], [suma_zaplat], [ID_FK_KOR], [zaplata_data], [zaplata_opis], [Zaliczka_Brutto], [Zaliczka_Data], [waluta_brutto], [waluta_miano], [waluta_kurs], [waluta_przelicznik], [waluta_kurs_z_dnia], [waluta_tabela_nr], [idZamowienia], [idFakturyKorekta], [KOREKTA]) VALUES (@NUMER, @NUMER_ROZ, @NUMER_ROK, @DATA_WYSTAWIENIA, @MIEJSCOWOSC_WYSTAWIENIA, @ID_SPRZEDAWCY, @ID_NABYWCY, @DATA_SPRZEDAZY, @PODPIS_WYSTAWIL, @PODPIS_ODEBRAL, @opis, @SPOSOB_ZAPLATY, @TERMIN_ZAPLATY, @ZAPLACONO, @BYL_WYDRUK, @NABYWCA_ADRES, @SPRZEDAWCA_ADRES, @SPRZEDAWCA_NIP, @NABYWCA_NIP, @FAKTURA_TYP, @FAKTURA_PODTYP, @ID_KONTA, @EKSPORT, @EXPORTED, @ID_TYTUL, @EXPORTED_DATA, @suma_zaplat, @ID_FK_KOR, @zaplata_data, @zaplata_opis, @Zaliczka_Brutto, @Zaliczka_Data, @waluta_brutto, @waluta_miano, @waluta_kurs, @waluta_przelicznik, @waluta_kurs_z_dnia, @waluta_tabela_nr, @idZamowienia, @idFakturyKorekta, @KOREKTA);
-SELECT ID_FAKTURY, NUMER, NUMER_ROZ, NUMER_ROK, DATA_WYSTAWIENIA, MIEJSCOWOSC_WYSTAWIENIA, ID_SPRZEDAWCY, ID_NABYWCY, DATA_SPRZEDAZY, PODPIS_WYSTAWIL, PODPIS_ODEBRAL, opis, SPOSOB_ZAPLATY, TERMIN_ZAPLATY, ZAPLACONO, BYL_WYDRUK, NABYWCA_ADRES, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, NABYWCA_NIP, FAKTURA_TYP, FAKTURA_PODTYP, ID_KONTA, EKSPORT, EXPORTED, ID_TYTUL, EXPORTED_DATA, suma_zaplat, ID_FK_KOR, zaplata_data, zaplata_opis, Zaliczka_Brutto, Zaliczka_Data, waluta_brutto, waluta_miano, waluta_kurs, waluta_przelicznik, waluta_kurs_z_dnia, waluta_tabela_nr, idZamowienia, idFakturyKorekta, KOREKTA FROM FAKTURY WHERE (ID_FAKTURY = SCOPE_IDENTITY())</CommandText>
+                    <CommandText>INSERT INTO [FAKTURY] ([NUMER], [NUMER_ROZ], [NUMER_ROK], [DATA_WYSTAWIENIA], [MIEJSCOWOSC_WYSTAWIENIA], [ID_SPRZEDAWCY], [ID_NABYWCY], [DATA_SPRZEDAZY], [PODPIS_WYSTAWIL], [PODPIS_ODEBRAL], [opis], [SPOSOB_ZAPLATY], [TERMIN_ZAPLATY], [ZAPLACONO], [BYL_WYDRUK], [NABYWCA_ADRES], [SPRZEDAWCA_ADRES], [SPRZEDAWCA_NIP], [NABYWCA_NIP], [FAKTURA_TYP], [FAKTURA_PODTYP], [ID_KONTA], [EKSPORT], [EXPORTED], [ID_TYTUL], [EXPORTED_DATA], [suma_zaplat], [ID_FK_KOR], [zaplata_data], [zaplata_opis], [Zaliczka_Brutto], [Zaliczka_Data], [waluta_brutto], [waluta_miano], [waluta_kurs], [waluta_przelicznik], [waluta_kurs_z_dnia], [waluta_tabela_nr], [idZamowienia], [idFakturyKorekta], [KOREKTA], [idFakturyVAT]) VALUES (@NUMER, @NUMER_ROZ, @NUMER_ROK, @DATA_WYSTAWIENIA, @MIEJSCOWOSC_WYSTAWIENIA, @ID_SPRZEDAWCY, @ID_NABYWCY, @DATA_SPRZEDAZY, @PODPIS_WYSTAWIL, @PODPIS_ODEBRAL, @opis, @SPOSOB_ZAPLATY, @TERMIN_ZAPLATY, @ZAPLACONO, @BYL_WYDRUK, @NABYWCA_ADRES, @SPRZEDAWCA_ADRES, @SPRZEDAWCA_NIP, @NABYWCA_NIP, @FAKTURA_TYP, @FAKTURA_PODTYP, @ID_KONTA, @EKSPORT, @EXPORTED, @ID_TYTUL, @EXPORTED_DATA, @suma_zaplat, @ID_FK_KOR, @zaplata_data, @zaplata_opis, @Zaliczka_Brutto, @Zaliczka_Data, @waluta_brutto, @waluta_miano, @waluta_kurs, @waluta_przelicznik, @waluta_kurs_z_dnia, @waluta_tabela_nr, @idZamowienia, @idFakturyKorekta, @KOREKTA, @idFakturyVAT);
+SELECT ID_FAKTURY, NUMER, NUMER_ROZ, NUMER_ROK, DATA_WYSTAWIENIA, MIEJSCOWOSC_WYSTAWIENIA, ID_SPRZEDAWCY, ID_NABYWCY, DATA_SPRZEDAZY, PODPIS_WYSTAWIL, PODPIS_ODEBRAL, opis, SPOSOB_ZAPLATY, TERMIN_ZAPLATY, ZAPLACONO, BYL_WYDRUK, NABYWCA_ADRES, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, NABYWCA_NIP, FAKTURA_TYP, FAKTURA_PODTYP, ID_KONTA, EKSPORT, EXPORTED, ID_TYTUL, EXPORTED_DATA, suma_zaplat, ID_FK_KOR, zaplata_data, zaplata_opis, Zaliczka_Brutto, Zaliczka_Data, waluta_brutto, waluta_miano, waluta_kurs, waluta_przelicznik, waluta_kurs_z_dnia, waluta_tabela_nr, idZamowienia, idFakturyKorekta, KOREKTA, idFakturyVAT FROM FAKTURY WHERE (ID_FAKTURY = SCOPE_IDENTITY())</CommandText>
                     <Parameters>
                       <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NUMER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NUMER" SourceColumnNullMapping="False" SourceVersion="Current">
@@ -1405,4 +1405,6 @@
                       </Parameter>
                       <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@KOREKTA" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="KOREKTA" SourceColumnNullMapping="False" SourceVersion="Current">
+                      </Parameter>
+                      <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idFakturyVAT" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idFakturyVAT" SourceColumnNullMapping="False" SourceVersion="Current">
                       </Parameter>
                     </Parameters>
@@ -1415,5 +1417,5 @@
                       NABYWCA_ADRES, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, NABYWCA_NIP, FAKTURA_TYP, FAKTURA_PODTYP, ID_KONTA, EKSPORT, 
                       EXPORTED, ID_TYTUL, EXPORTED_DATA, suma_zaplat, ID_FK_KOR, zaplata_data, zaplata_opis, Zaliczka_Brutto, Zaliczka_Data, waluta_brutto, 
-                      waluta_miano, waluta_kurs, waluta_przelicznik, waluta_kurs_z_dnia, waluta_tabela_nr, idZamowienia, idFakturyKorekta, KOREKTA
+                      waluta_miano, waluta_kurs, waluta_przelicznik, waluta_kurs_z_dnia, waluta_tabela_nr, idZamowienia, idFakturyKorekta, KOREKTA, idFakturyVAT
 FROM         FAKTURY</CommandText>
                     <Parameters>
@@ -1423,6 +1425,6 @@
                 <UpdateCommand>
                   <DbCommand CommandType="Text" ModifiedByUser="False">
-                    <CommandText>UPDATE [FAKTURY] SET [NUMER] = @NUMER, [NUMER_ROZ] = @NUMER_ROZ, [NUMER_ROK] = @NUMER_ROK, [DATA_WYSTAWIENIA] = @DATA_WYSTAWIENIA, [MIEJSCOWOSC_WYSTAWIENIA] = @MIEJSCOWOSC_WYSTAWIENIA, [ID_SPRZEDAWCY] = @ID_SPRZEDAWCY, [ID_NABYWCY] = @ID_NABYWCY, [DATA_SPRZEDAZY] = @DATA_SPRZEDAZY, [PODPIS_WYSTAWIL] = @PODPIS_WYSTAWIL, [PODPIS_ODEBRAL] = @PODPIS_ODEBRAL, [opis] = @opis, [SPOSOB_ZAPLATY] = @SPOSOB_ZAPLATY, [TERMIN_ZAPLATY] = @TERMIN_ZAPLATY, [ZAPLACONO] = @ZAPLACONO, [BYL_WYDRUK] = @BYL_WYDRUK, [NABYWCA_ADRES] = @NABYWCA_ADRES, [SPRZEDAWCA_ADRES] = @SPRZEDAWCA_ADRES, [SPRZEDAWCA_NIP] = @SPRZEDAWCA_NIP, [NABYWCA_NIP] = @NABYWCA_NIP, [FAKTURA_TYP] = @FAKTURA_TYP, [FAKTURA_PODTYP] = @FAKTURA_PODTYP, [ID_KONTA] = @ID_KONTA, [EKSPORT] = @EKSPORT, [EXPORTED] = @EXPORTED, [ID_TYTUL] = @ID_TYTUL, [EXPORTED_DATA] = @EXPORTED_DATA, [suma_zaplat] = @suma_zaplat, [ID_FK_KOR] = @ID_FK_KOR, [zaplata_data] = @zaplata_data, [zaplata_opis] = @zaplata_opis, [Zaliczka_Brutto] = @Zaliczka_Brutto, [Zaliczka_Data] = @Zaliczka_Data, [waluta_brutto] = @waluta_brutto, [waluta_miano] = @waluta_miano, [waluta_kurs] = @waluta_kurs, [waluta_przelicznik] = @waluta_przelicznik, [waluta_kurs_z_dnia] = @waluta_kurs_z_dnia, [waluta_tabela_nr] = @waluta_tabela_nr, [idZamowienia] = @idZamowienia, [idFakturyKorekta] = @idFakturyKorekta, [KOREKTA] = @KOREKTA WHERE (([ID_FAKTURY] = @Original_ID_FAKTURY));
-SELECT ID_FAKTURY, NUMER, NUMER_ROZ, NUMER_ROK, DATA_WYSTAWIENIA, MIEJSCOWOSC_WYSTAWIENIA, ID_SPRZEDAWCY, ID_NABYWCY, DATA_SPRZEDAZY, PODPIS_WYSTAWIL, PODPIS_ODEBRAL, opis, SPOSOB_ZAPLATY, TERMIN_ZAPLATY, ZAPLACONO, BYL_WYDRUK, NABYWCA_ADRES, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, NABYWCA_NIP, FAKTURA_TYP, FAKTURA_PODTYP, ID_KONTA, EKSPORT, EXPORTED, ID_TYTUL, EXPORTED_DATA, suma_zaplat, ID_FK_KOR, zaplata_data, zaplata_opis, Zaliczka_Brutto, Zaliczka_Data, waluta_brutto, waluta_miano, waluta_kurs, waluta_przelicznik, waluta_kurs_z_dnia, waluta_tabela_nr, idZamowienia, idFakturyKorekta, KOREKTA FROM FAKTURY WHERE (ID_FAKTURY = @ID_FAKTURY)</CommandText>
+                    <CommandText>UPDATE [FAKTURY] SET [NUMER] = @NUMER, [NUMER_ROZ] = @NUMER_ROZ, [NUMER_ROK] = @NUMER_ROK, [DATA_WYSTAWIENIA] = @DATA_WYSTAWIENIA, [MIEJSCOWOSC_WYSTAWIENIA] = @MIEJSCOWOSC_WYSTAWIENIA, [ID_SPRZEDAWCY] = @ID_SPRZEDAWCY, [ID_NABYWCY] = @ID_NABYWCY, [DATA_SPRZEDAZY] = @DATA_SPRZEDAZY, [PODPIS_WYSTAWIL] = @PODPIS_WYSTAWIL, [PODPIS_ODEBRAL] = @PODPIS_ODEBRAL, [opis] = @opis, [SPOSOB_ZAPLATY] = @SPOSOB_ZAPLATY, [TERMIN_ZAPLATY] = @TERMIN_ZAPLATY, [ZAPLACONO] = @ZAPLACONO, [BYL_WYDRUK] = @BYL_WYDRUK, [NABYWCA_ADRES] = @NABYWCA_ADRES, [SPRZEDAWCA_ADRES] = @SPRZEDAWCA_ADRES, [SPRZEDAWCA_NIP] = @SPRZEDAWCA_NIP, [NABYWCA_NIP] = @NABYWCA_NIP, [FAKTURA_TYP] = @FAKTURA_TYP, [FAKTURA_PODTYP] = @FAKTURA_PODTYP, [ID_KONTA] = @ID_KONTA, [EKSPORT] = @EKSPORT, [EXPORTED] = @EXPORTED, [ID_TYTUL] = @ID_TYTUL, [EXPORTED_DATA] = @EXPORTED_DATA, [suma_zaplat] = @suma_zaplat, [ID_FK_KOR] = @ID_FK_KOR, [zaplata_data] = @zaplata_data, [zaplata_opis] = @zaplata_opis, [Zaliczka_Brutto] = @Zaliczka_Brutto, [Zaliczka_Data] = @Zaliczka_Data, [waluta_brutto] = @waluta_brutto, [waluta_miano] = @waluta_miano, [waluta_kurs] = @waluta_kurs, [waluta_przelicznik] = @waluta_przelicznik, [waluta_kurs_z_dnia] = @waluta_kurs_z_dnia, [waluta_tabela_nr] = @waluta_tabela_nr, [idZamowienia] = @idZamowienia, [idFakturyKorekta] = @idFakturyKorekta, [KOREKTA] = @KOREKTA, [idFakturyVAT] = @idFakturyVAT WHERE (([ID_FAKTURY] = @Original_ID_FAKTURY));
+SELECT ID_FAKTURY, NUMER, NUMER_ROZ, NUMER_ROK, DATA_WYSTAWIENIA, MIEJSCOWOSC_WYSTAWIENIA, ID_SPRZEDAWCY, ID_NABYWCY, DATA_SPRZEDAZY, PODPIS_WYSTAWIL, PODPIS_ODEBRAL, opis, SPOSOB_ZAPLATY, TERMIN_ZAPLATY, ZAPLACONO, BYL_WYDRUK, NABYWCA_ADRES, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, NABYWCA_NIP, FAKTURA_TYP, FAKTURA_PODTYP, ID_KONTA, EKSPORT, EXPORTED, ID_TYTUL, EXPORTED_DATA, suma_zaplat, ID_FK_KOR, zaplata_data, zaplata_opis, Zaliczka_Brutto, Zaliczka_Data, waluta_brutto, waluta_miano, waluta_kurs, waluta_przelicznik, waluta_kurs_z_dnia, waluta_tabela_nr, idZamowienia, idFakturyKorekta, KOREKTA, idFakturyVAT FROM FAKTURY WHERE (ID_FAKTURY = @ID_FAKTURY)</CommandText>
                     <Parameters>
                       <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NUMER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NUMER" SourceColumnNullMapping="False" SourceVersion="Current">
@@ -1507,4 +1509,6 @@
                       </Parameter>
                       <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@KOREKTA" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="KOREKTA" SourceColumnNullMapping="False" SourceVersion="Current">
+                      </Parameter>
+                      <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idFakturyVAT" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idFakturyVAT" SourceColumnNullMapping="False" SourceVersion="Current">
                       </Parameter>
                       <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID_FAKTURY" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID_FAKTURY" SourceColumnNullMapping="False" SourceVersion="Original">
@@ -1560,4 +1564,5 @@
               <Mapping SourceColumn="idFakturyKorekta" DataSetColumn="idFakturyKorekta" />
               <Mapping SourceColumn="KOREKTA" DataSetColumn="KOREKTA" />
+              <Mapping SourceColumn="idFakturyVAT" DataSetColumn="idFakturyVAT" />
             </Mappings>
             <Sources>
@@ -1565,5 +1570,5 @@
                 <SelectCommand>
                   <DbCommand CommandType="Text" ModifiedByUser="True">
-                    <CommandText>SELECT TOP 1 BYL_WYDRUK, DATA_SPRZEDAZY, DATA_WYSTAWIENIA, EKSPORT, EXPORTED, EXPORTED_DATA, FAKTURA_PODTYP, FAKTURA_TYP, ID_FAKTURY, ID_FK_KOR, ID_KONTA, ID_NABYWCY, ID_SPRZEDAWCY, ID_TYTUL, KOREKTA, MIEJSCOWOSC_WYSTAWIENIA, NABYWCA_ADRES, NABYWCA_NIP, NUMER, NUMER_ROK, NUMER_ROZ, PODPIS_ODEBRAL, PODPIS_WYSTAWIL, SPOSOB_ZAPLATY, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, TERMIN_ZAPLATY, ZAPLACONO, Zaliczka_Brutto, Zaliczka_Data, idFakturyKorekta, idZamowienia, opis, suma_zaplat, waluta_brutto, waluta_kurs, waluta_kurs_z_dnia, waluta_miano, waluta_przelicznik, waluta_tabela_nr, zaplata_data, zaplata_opis FROM FAKTURY WHERE (idFakturyKorekta = @param)</CommandText>
+                    <CommandText>SELECT TOP 1 BYL_WYDRUK, DATA_SPRZEDAZY, DATA_WYSTAWIENIA, EKSPORT, EXPORTED, EXPORTED_DATA, FAKTURA_PODTYP, FAKTURA_TYP, ID_FAKTURY, ID_FK_KOR, ID_KONTA, ID_NABYWCY, ID_SPRZEDAWCY, ID_TYTUL, KOREKTA, MIEJSCOWOSC_WYSTAWIENIA, NABYWCA_ADRES, NABYWCA_NIP, NUMER, NUMER_ROK, NUMER_ROZ, PODPIS_ODEBRAL, PODPIS_WYSTAWIL, SPOSOB_ZAPLATY, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, TERMIN_ZAPLATY, ZAPLACONO, Zaliczka_Brutto, Zaliczka_Data, idFakturyKorekta, idFakturyVAT, idZamowienia, opis, suma_zaplat, waluta_brutto, waluta_kurs, waluta_kurs_z_dnia, waluta_miano, waluta_przelicznik, waluta_tabela_nr, zaplata_data, zaplata_opis FROM FAKTURY WHERE (idFakturyKorekta = @param)</CommandText>
                     <Parameters>
                       <Parameter AllowDbNull="True" AutogeneratedName="param" ColumnName="idFakturyKorekta" DataSourceName="BAZA_REKLAM_TEST.dbo.FAKTURY" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@param" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idFakturyKorekta" SourceColumnNullMapping="False" SourceVersion="Current">
@@ -1576,5 +1581,5 @@
                 <SelectCommand>
                   <DbCommand CommandType="Text" ModifiedByUser="True">
-                    <CommandText>SELECT BYL_WYDRUK, DATA_SPRZEDAZY, DATA_WYSTAWIENIA, EKSPORT, EXPORTED, EXPORTED_DATA, FAKTURA_PODTYP, FAKTURA_TYP, ID_FAKTURY, ID_FK_KOR, ID_KONTA, ID_NABYWCY, ID_SPRZEDAWCY, ID_TYTUL, KOREKTA, MIEJSCOWOSC_WYSTAWIENIA, NABYWCA_ADRES, NABYWCA_NIP, NUMER, NUMER_ROK, NUMER_ROZ, PODPIS_ODEBRAL, PODPIS_WYSTAWIL, SPOSOB_ZAPLATY, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, TERMIN_ZAPLATY, ZAPLACONO, Zaliczka_Brutto, Zaliczka_Data, idFakturyKorekta, idZamowienia, opis, suma_zaplat, waluta_brutto, waluta_kurs, waluta_kurs_z_dnia, waluta_miano, waluta_przelicznik, waluta_tabela_nr, zaplata_data, zaplata_opis FROM FAKTURY WHERE (ID_FAKTURY = @param)</CommandText>
+                    <CommandText>SELECT BYL_WYDRUK, DATA_SPRZEDAZY, DATA_WYSTAWIENIA, EKSPORT, EXPORTED, EXPORTED_DATA, FAKTURA_PODTYP, FAKTURA_TYP, ID_FAKTURY, ID_FK_KOR, ID_KONTA, ID_NABYWCY, ID_SPRZEDAWCY, ID_TYTUL, KOREKTA, MIEJSCOWOSC_WYSTAWIENIA, NABYWCA_ADRES, NABYWCA_NIP, NUMER, NUMER_ROK, NUMER_ROZ, PODPIS_ODEBRAL, PODPIS_WYSTAWIL, SPOSOB_ZAPLATY, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, TERMIN_ZAPLATY, ZAPLACONO, Zaliczka_Brutto, Zaliczka_Data, idFakturyKorekta, idFakturyVAT, idZamowienia, opis, suma_zaplat, waluta_brutto, waluta_kurs, waluta_kurs_z_dnia, waluta_miano, waluta_przelicznik, waluta_tabela_nr, zaplata_data, zaplata_opis FROM FAKTURY WHERE (ID_FAKTURY = @param)</CommandText>
                     <Parameters>
                       <Parameter AllowDbNull="False" AutogeneratedName="param" ColumnName="ID_FAKTURY" DataSourceName="BAZA_REKLAM_TEST.dbo.FAKTURY" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@param" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID_FAKTURY" SourceColumnNullMapping="False" SourceVersion="Current">
@@ -1587,5 +1592,5 @@
                 <SelectCommand>
                   <DbCommand CommandType="Text" ModifiedByUser="True">
-                    <CommandText>SELECT BYL_WYDRUK, DATA_SPRZEDAZY, DATA_WYSTAWIENIA, EKSPORT, EXPORTED, EXPORTED_DATA, FAKTURA_PODTYP, FAKTURA_TYP, ID_FAKTURY, ID_FK_KOR, ID_KONTA, ID_NABYWCY, ID_SPRZEDAWCY, ID_TYTUL, KOREKTA, MIEJSCOWOSC_WYSTAWIENIA, NABYWCA_ADRES, NABYWCA_NIP, NUMER, NUMER_ROK, NUMER_ROZ, PODPIS_ODEBRAL, PODPIS_WYSTAWIL, SPOSOB_ZAPLATY, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, TERMIN_ZAPLATY, ZAPLACONO, Zaliczka_Brutto, Zaliczka_Data, idFakturyKorekta, idZamowienia, opis, suma_zaplat, waluta_brutto, waluta_kurs, waluta_kurs_z_dnia, waluta_miano, waluta_przelicznik, waluta_tabela_nr, zaplata_data, zaplata_opis FROM FAKTURY WHERE (ID_NABYWCY = @param)</CommandText>
+                    <CommandText>SELECT BYL_WYDRUK, DATA_SPRZEDAZY, DATA_WYSTAWIENIA, EKSPORT, EXPORTED, EXPORTED_DATA, FAKTURA_PODTYP, FAKTURA_TYP, ID_FAKTURY, ID_FK_KOR, ID_KONTA, ID_NABYWCY, ID_SPRZEDAWCY, ID_TYTUL, KOREKTA, MIEJSCOWOSC_WYSTAWIENIA, NABYWCA_ADRES, NABYWCA_NIP, NUMER, NUMER_ROK, NUMER_ROZ, PODPIS_ODEBRAL, PODPIS_WYSTAWIL, SPOSOB_ZAPLATY, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, TERMIN_ZAPLATY, ZAPLACONO, Zaliczka_Brutto, Zaliczka_Data, idFakturyKorekta, idFakturyVAT, idZamowienia, opis, suma_zaplat, waluta_brutto, waluta_kurs, waluta_kurs_z_dnia, waluta_miano, waluta_przelicznik, waluta_tabela_nr, zaplata_data, zaplata_opis FROM FAKTURY WHERE (ID_NABYWCY = @param)</CommandText>
                     <Parameters>
                       <Parameter AllowDbNull="True" AutogeneratedName="param" ColumnName="ID_NABYWCY" DataSourceName="BAZA_REKLAM_TEST.dbo.FAKTURY" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@param" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID_NABYWCY" SourceColumnNullMapping="False" SourceVersion="Current">
@@ -1598,5 +1603,5 @@
                 <SelectCommand>
                   <DbCommand CommandType="Text" ModifiedByUser="True">
-                    <CommandText>SELECT TOP 100 BYL_WYDRUK, DATA_SPRZEDAZY, DATA_WYSTAWIENIA, EKSPORT, EXPORTED, EXPORTED_DATA, FAKTURA_PODTYP, FAKTURA_TYP, ID_FAKTURY, ID_FK_KOR, ID_KONTA, ID_NABYWCY, ID_SPRZEDAWCY, ID_TYTUL, KOREKTA, MIEJSCOWOSC_WYSTAWIENIA, NABYWCA_ADRES, NABYWCA_NIP, NUMER, NUMER_ROK, NUMER_ROZ, PODPIS_ODEBRAL, PODPIS_WYSTAWIL, SPOSOB_ZAPLATY, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, TERMIN_ZAPLATY, ZAPLACONO, Zaliczka_Brutto, Zaliczka_Data, idFakturyKorekta, idZamowienia, opis, suma_zaplat, waluta_brutto, waluta_kurs, waluta_kurs_z_dnia, waluta_miano, waluta_przelicznik, waluta_tabela_nr, zaplata_data, zaplata_opis FROM FAKTURY WHERE (idZamowienia = @param)</CommandText>
+                    <CommandText>SELECT TOP 100 BYL_WYDRUK, DATA_SPRZEDAZY, DATA_WYSTAWIENIA, EKSPORT, EXPORTED, EXPORTED_DATA, FAKTURA_PODTYP, FAKTURA_TYP, ID_FAKTURY, ID_FK_KOR, ID_KONTA, ID_NABYWCY, ID_SPRZEDAWCY, ID_TYTUL, KOREKTA, MIEJSCOWOSC_WYSTAWIENIA, NABYWCA_ADRES, NABYWCA_NIP, NUMER, NUMER_ROK, NUMER_ROZ, PODPIS_ODEBRAL, PODPIS_WYSTAWIL, SPOSOB_ZAPLATY, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, TERMIN_ZAPLATY, ZAPLACONO, Zaliczka_Brutto, Zaliczka_Data, idFakturyKorekta, idFakturyVAT, idZamowienia, opis, suma_zaplat, waluta_brutto, waluta_kurs, waluta_kurs_z_dnia, waluta_miano, waluta_przelicznik, waluta_tabela_nr, zaplata_data, zaplata_opis FROM FAKTURY WHERE (idZamowienia = @param)</CommandText>
                     <Parameters>
                       <Parameter AllowDbNull="True" AutogeneratedName="param" ColumnName="idZamowienia" DataSourceName="BAZA_REKLAM_TEST.dbo.FAKTURY" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@param" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idZamowienia" SourceColumnNullMapping="False" SourceVersion="Current">
@@ -1609,5 +1614,5 @@
                 <SelectCommand>
                   <DbCommand CommandType="Text" ModifiedByUser="True">
-                    <CommandText>SELECT BYL_WYDRUK, DATA_SPRZEDAZY, DATA_WYSTAWIENIA, EKSPORT, EXPORTED, EXPORTED_DATA, FAKTURA_PODTYP, FAKTURA_TYP, ID_FAKTURY, ID_FK_KOR, ID_KONTA, ID_NABYWCY, ID_SPRZEDAWCY, ID_TYTUL, KOREKTA, MIEJSCOWOSC_WYSTAWIENIA, NABYWCA_ADRES, NABYWCA_NIP, NUMER, NUMER_ROK, NUMER_ROZ, PODPIS_ODEBRAL, PODPIS_WYSTAWIL, SPOSOB_ZAPLATY, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, TERMIN_ZAPLATY, ZAPLACONO, Zaliczka_Brutto, Zaliczka_Data, idFakturyKorekta, idZamowienia, opis, suma_zaplat, waluta_brutto, waluta_kurs, waluta_kurs_z_dnia, waluta_miano, waluta_przelicznik, waluta_tabela_nr, zaplata_data, zaplata_opis FROM FAKTURY WHERE (NUMER_ROZ = @param)</CommandText>
+                    <CommandText>SELECT BYL_WYDRUK, DATA_SPRZEDAZY, DATA_WYSTAWIENIA, EKSPORT, EXPORTED, EXPORTED_DATA, FAKTURA_PODTYP, FAKTURA_TYP, ID_FAKTURY, ID_FK_KOR, ID_KONTA, ID_NABYWCY, ID_SPRZEDAWCY, ID_TYTUL, KOREKTA, MIEJSCOWOSC_WYSTAWIENIA, NABYWCA_ADRES, NABYWCA_NIP, NUMER, NUMER_ROK, NUMER_ROZ, PODPIS_ODEBRAL, PODPIS_WYSTAWIL, SPOSOB_ZAPLATY, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, TERMIN_ZAPLATY, ZAPLACONO, Zaliczka_Brutto, Zaliczka_Data, idFakturyKorekta, idFakturyVAT, idZamowienia, opis, suma_zaplat, waluta_brutto, waluta_kurs, waluta_kurs_z_dnia, waluta_miano, waluta_przelicznik, waluta_tabela_nr, zaplata_data, zaplata_opis FROM FAKTURY WHERE (NUMER_ROZ = @param)</CommandText>
                     <Parameters>
                       <Parameter AllowDbNull="True" AutogeneratedName="param" ColumnName="NUMER_ROZ" DataSourceName="BAZA_REKLAM_TEST.dbo.FAKTURY" DataTypeServer="nvarchar(8)" DbType="String" Direction="Input" ParameterName="@param" Precision="0" ProviderType="NVarChar" Scale="0" Size="8" SourceColumn="NUMER_ROZ" SourceColumnNullMapping="False" SourceVersion="Current">
@@ -4332,9 +4337,9 @@
               <DbSource ConnectionRef="testowe (Settings)" DbObjectName="BAZA_REKLAM_TEST.dbo.VIEW_KOREKTY" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="False" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetData" UserSourceName="Fill">
                 <SelectCommand>
-                  <DbCommand CommandType="Text" ModifiedByUser="True">
-                    <CommandText>SELECT     ID_FAKTURY, CustomerId, Id_Agencji, kodKlienta, NUMER, NUMER_ROZ, NUMER_ROK, netto, S_VAT, vat, brutto, suma_zaplat, DATA_WYSTAWIENIA, 
-                      DATA_SPRZEDAZY, TERMIN_ZAPLATY, zaplata_data, zaplata_opis, idZamowienia, idFakturyKorekta, NR_FAKTURY_KOREKTY, NUMER_F, 
-                      NUMER_ROZ_F, NUMER_ROK_F, netto_F, brutto_F, vat_F, suma_zapłat_F, data_wystawienia_F, NR_FAKTURY, roznica_netto, roznica_vat, 
-                      roznica_brutto, agencja, agent, waluta_roznica_brutto, waluta_miano
+                  <DbCommand CommandType="Text" ModifiedByUser="False">
+                    <CommandText>SELECT     ID_FAKTURY, CustomerId, Id_Agencji, kodKlienta, NUMER, NUMER_ROZ, NUMER_ROK, netto, S_VAT, vat, brutto, liczbaReklam, suma_zaplat, 
+                      DATA_WYSTAWIENIA, DATA_SPRZEDAZY, TERMIN_ZAPLATY, zaplata_data, zaplata_opis, idZamowienia, KOREKTA, idFakturyKorekta, agent, 
+                      waluta_brutto, waluta_miano, idFakturyVAT, ID_FK_KOR, NR_FAKTURY_KOREKTY, NUMER_F, NUMER_ROZ_F, NUMER_ROK_F, netto_F, brutto_F, 
+                      vat_F, suma_zapłat_F, data_wystawienia_F, NR_FAKTURY, roznica_netto, roznica_vat, roznica_brutto, agencja, waluta_roznica_brutto
 FROM         VIEW_KOREKTY</CommandText>
                     <Parameters>
@@ -4381,4 +4386,9 @@
               <Mapping SourceColumn="waluta_roznica_brutto" DataSetColumn="waluta_roznica_brutto" />
               <Mapping SourceColumn="waluta_miano" DataSetColumn="waluta_miano" />
+              <Mapping SourceColumn="liczbaReklam" DataSetColumn="liczbaReklam" />
+              <Mapping SourceColumn="KOREKTA" DataSetColumn="KOREKTA" />
+              <Mapping SourceColumn="waluta_brutto" DataSetColumn="waluta_brutto" />
+              <Mapping SourceColumn="idFakturyVAT" DataSetColumn="idFakturyVAT" />
+              <Mapping SourceColumn="ID_FK_KOR" DataSetColumn="ID_FK_KOR" />
             </Mappings>
             <Sources>
@@ -5108,4 +5118,5 @@
               <xs:element name="idFakturyKorekta" msprop:Generator_UserColumnName="idFakturyKorekta" msprop:Generator_ColumnVarNameInTable="columnidFakturyKorekta" msprop:Generator_ColumnPropNameInRow="idFakturyKorekta" msprop:Generator_ColumnPropNameInTable="idFakturyKorektaColumn" type="xs:int" minOccurs="0" />
               <xs:element name="KOREKTA" msprop:Generator_UserColumnName="KOREKTA" msprop:Generator_ColumnPropNameInRow="KOREKTA" msprop:Generator_ColumnVarNameInTable="columnKOREKTA" msprop:Generator_ColumnPropNameInTable="KOREKTAColumn" type="xs:boolean" default="false" />
+              <xs:element name="idFakturyVAT" msprop:Generator_UserColumnName="idFakturyVAT" msprop:Generator_ColumnVarNameInTable="columnidFakturyVAT" msprop:Generator_ColumnPropNameInRow="idFakturyVAT" msprop:Generator_ColumnPropNameInTable="idFakturyVATColumn" type="xs:int" minOccurs="0" />
             </xs:sequence>
           </xs:complexType>
@@ -6291,5 +6302,5 @@
           </xs:complexType>
         </xs:element>
-        <xs:element name="VIEW_KOREKTY" msprop:Generator_UserTableName="VIEW_KOREKTY" msprop:Generator_RowDeletedName="VIEW_KOREKTYRowDeleted" msprop:Generator_TableClassName="VIEW_KOREKTYDataTable" msprop:Generator_RowChangedName="VIEW_KOREKTYRowChanged" msprop:Generator_RowClassName="VIEW_KOREKTYRow" msprop:Generator_RowChangingName="VIEW_KOREKTYRowChanging" msprop:Generator_RowEvArgName="VIEW_KOREKTYRowChangeEvent" msprop:Generator_RowEvHandlerName="VIEW_KOREKTYRowChangeEventHandler" msprop:Generator_TablePropName="VIEW_KOREKTY" msprop:Generator_TableVarName="tableVIEW_KOREKTY" msprop:Generator_RowDeletingName="VIEW_KOREKTYRowDeleting">
+        <xs:element name="VIEW_KOREKTY" msprop:Generator_UserTableName="VIEW_KOREKTY" msprop:Generator_RowDeletedName="VIEW_KOREKTYRowDeleted" msprop:Generator_RowChangedName="VIEW_KOREKTYRowChanged" msprop:Generator_RowClassName="VIEW_KOREKTYRow" msprop:Generator_RowChangingName="VIEW_KOREKTYRowChanging" msprop:Generator_RowEvArgName="VIEW_KOREKTYRowChangeEvent" msprop:Generator_RowEvHandlerName="VIEW_KOREKTYRowChangeEventHandler" msprop:Generator_TableClassName="VIEW_KOREKTYDataTable" msprop:Generator_TableVarName="tableVIEW_KOREKTY" msprop:Generator_RowDeletingName="VIEW_KOREKTYRowDeleting" msprop:Generator_TablePropName="VIEW_KOREKTY">
           <xs:complexType>
             <xs:sequence>
@@ -6384,4 +6395,9 @@
                 </xs:simpleType>
               </xs:element>
+              <xs:element name="liczbaReklam" msprop:Generator_UserColumnName="liczbaReklam" msprop:Generator_ColumnPropNameInRow="liczbaReklam" msprop:Generator_ColumnVarNameInTable="columnliczbaReklam" msprop:Generator_ColumnPropNameInTable="liczbaReklamColumn" type="xs:int" minOccurs="0" />
+              <xs:element name="KOREKTA" msprop:Generator_UserColumnName="KOREKTA" msprop:Generator_ColumnPropNameInRow="KOREKTA" msprop:Generator_ColumnVarNameInTable="columnKOREKTA" msprop:Generator_ColumnPropNameInTable="KOREKTAColumn" type="xs:boolean" />
+              <xs:element name="waluta_brutto" msprop:Generator_UserColumnName="waluta_brutto" msprop:Generator_ColumnPropNameInRow="waluta_brutto" msprop:Generator_ColumnVarNameInTable="columnwaluta_brutto" msprop:Generator_ColumnPropNameInTable="waluta_bruttoColumn" type="xs:double" minOccurs="0" />
+              <xs:element name="idFakturyVAT" msprop:Generator_UserColumnName="idFakturyVAT" msprop:Generator_ColumnPropNameInRow="idFakturyVAT" msprop:Generator_ColumnVarNameInTable="columnidFakturyVAT" msprop:Generator_ColumnPropNameInTable="idFakturyVATColumn" type="xs:int" minOccurs="0" />
+              <xs:element name="ID_FK_KOR" msprop:Generator_UserColumnName="ID_FK_KOR" msprop:Generator_ColumnPropNameInRow="ID_FK_KOR" msprop:Generator_ColumnVarNameInTable="columnID_FK_KOR" msprop:Generator_ColumnPropNameInTable="ID_FK_KORColumn" type="xs:int" minOccurs="0" />
             </xs:sequence>
           </xs:complexType>
Index: Baza Reklam 2 - Faktury/REKLAMADataSet.xss
===================================================================
--- Baza Reklam 2 - Faktury/REKLAMADataSet.xss (revision 33)
+++ Baza Reklam 2 - Faktury/REKLAMADataSet.xss (revision 34)
@@ -5,5 +5,5 @@
      the code is regenerated.
 </autogenerated>-->
-<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-1339" ViewPortY="1574" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
+<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-1339" ViewPortY="1503" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
   <Shapes>
     <Shape ID="DesignTable:REKLAMA" ZOrder="12" X="-162" Y="35" Height="403" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="24" SplitterPosition="254" />
Index: Baza Reklam 2 - Faktury/raporty.Designer.cs
===================================================================
--- Baza Reklam 2 - Faktury/raporty.Designer.cs (revision 17)
+++ Baza Reklam 2 - Faktury/raporty.Designer.cs (revision 34)
@@ -549,4 +549,6 @@
             private global::System.Data.DataColumn columnidFakturyKorekta;
             
+            private global::System.Data.DataColumn columnidFakturyVAT;
+            
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             public FakturaDataTable() {
@@ -905,4 +907,11 @@
                 get {
                     return this.columnidFakturyKorekta;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            public global::System.Data.DataColumn idFakturyVATColumn {
+                get {
+                    return this.columnidFakturyVAT;
                 }
             }
@@ -983,5 +992,6 @@
                         bool KOREKTA, 
                         int idZamowienia, 
-                        int idFakturyKorekta) {
+                        int idFakturyKorekta, 
+                        int idFakturyVAT) {
                 FakturaRow rowFakturaRow = ((FakturaRow)(this.NewRow()));
                 object[] columnValuesArray = new object[] {
@@ -1032,5 +1042,6 @@
                         KOREKTA,
                         idZamowienia,
-                        idFakturyKorekta};
+                        idFakturyKorekta,
+                        idFakturyVAT};
                 rowFakturaRow.ItemArray = columnValuesArray;
                 this.Rows.Add(rowFakturaRow);
@@ -1110,4 +1121,5 @@
                 this.columnidZamowienia = base.Columns["idZamowienia"];
                 this.columnidFakturyKorekta = base.Columns["idFakturyKorekta"];
+                this.columnidFakturyVAT = base.Columns["idFakturyVAT"];
             }
             
@@ -1208,4 +1220,6 @@
                 this.columnidFakturyKorekta = new global::System.Data.DataColumn("idFakturyKorekta", typeof(int), null, global::System.Data.MappingType.Element);
                 base.Columns.Add(this.columnidFakturyKorekta);
+                this.columnidFakturyVAT = new global::System.Data.DataColumn("idFakturyVAT", typeof(int), null, global::System.Data.MappingType.Element);
+                base.Columns.Add(this.columnidFakturyVAT);
                 this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
                                 this.columnID_FAKTURY}, true));
@@ -5697,4 +5711,19 @@
             
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            public int idFakturyVAT {
+                get {
+                    try {
+                        return ((int)(this[this.tableFaktura.idFakturyVATColumn]));
+                    }
+                    catch (global::System.InvalidCastException e) {
+                        throw new global::System.Data.StrongTypingException("The value for column \'idFakturyVAT\' in table \'Faktura\' is DBNull.", e);
+                    }
+                }
+                set {
+                    this[this.tableFaktura.idFakturyVATColumn] = value;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             public bool IsNUMERNull() {
                 return this.IsNull(this.tableFaktura.NUMERColumn);
@@ -6124,4 +6153,14 @@
             public void SetidFakturyKorektaNull() {
                 this[this.tableFaktura.idFakturyKorektaColumn] = global::System.Convert.DBNull;
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            public bool IsidFakturyVATNull() {
+                return this.IsNull(this.tableFaktura.idFakturyVATColumn);
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            public void SetidFakturyVATNull() {
+                this[this.tableFaktura.idFakturyVATColumn] = global::System.Convert.DBNull;
             }
         }
@@ -10493,4 +10532,5 @@
             tableMapping.ColumnMappings.Add("idZamowienia", "idZamowienia");
             tableMapping.ColumnMappings.Add("idFakturyKorekta", "idFakturyKorekta");
+            tableMapping.ColumnMappings.Add("idFakturyVAT", "idFakturyVAT");
             this._adapter.TableMappings.Add(tableMapping);
         }
@@ -10513,5 +10553,5 @@
                       F.zaplata_opis, F.Zaliczka_Brutto, F.Zaliczka_Data, F.waluta_brutto, F.waluta_miano, F.waluta_kurs, F.waluta_przelicznik, F.waluta_kurs_z_dnia, 
                       F.waluta_tabela_nr, K.KONTO, T.[HASŁO REKLAMOWE], a.RejestrFaktur_Symbol, K2.Adres_Kor, a.Adres_Kor AS Adres_Kor_Agencji, F.idZamowienia, 
-                      F.idFakturyKorekta, F.KOREKTA
+                      F.KOREKTA, F.idFakturyKorekta, F.idFakturyVAT
 FROM         FAKTURY AS F LEFT OUTER JOIN
                       KONTA AS K ON K.id = F.ID_KONTA LEFT OUTER JOIN
Index: Baza Reklam 2 - Faktury/REKLAMADataSet.Designer.cs
===================================================================
--- Baza Reklam 2 - Faktury/REKLAMADataSet.Designer.cs (revision 33)
+++ Baza Reklam 2 - Faktury/REKLAMADataSet.Designer.cs (revision 34)
@@ -5168,4 +5168,6 @@
             private global::System.Data.DataColumn columnKOREKTA;
             
+            private global::System.Data.DataColumn columnidFakturyVAT;
+            
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             public FAKTURYDataTable() {
@@ -5489,4 +5491,11 @@
                 get {
                     return this.columnKOREKTA;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            public global::System.Data.DataColumn idFakturyVATColumn {
+                get {
+                    return this.columnidFakturyVAT;
                 }
             }
@@ -5562,5 +5571,6 @@
                         int idZamowienia, 
                         int idFakturyKorekta, 
-                        bool KOREKTA) {
+                        bool KOREKTA, 
+                        int idFakturyVAT) {
                 FAKTURYRow rowFAKTURYRow = ((FAKTURYRow)(this.NewRow()));
                 object[] columnValuesArray = new object[] {
@@ -5606,5 +5616,6 @@
                         idZamowienia,
                         idFakturyKorekta,
-                        KOREKTA};
+                        KOREKTA,
+                        idFakturyVAT};
                 if ((parentKLIENCIRowByKLIENCI_FAKTURY != null)) {
                     columnValuesArray[7] = parentKLIENCIRowByKLIENCI_FAKTURY[25];
@@ -5682,4 +5693,5 @@
                 this.columnidFakturyKorekta = base.Columns["idFakturyKorekta"];
                 this.columnKOREKTA = base.Columns["KOREKTA"];
+                this.columnidFakturyVAT = base.Columns["idFakturyVAT"];
             }
             
@@ -5770,4 +5782,6 @@
                 this.columnKOREKTA = new global::System.Data.DataColumn("KOREKTA", typeof(bool), null, global::System.Data.MappingType.Element);
                 base.Columns.Add(this.columnKOREKTA);
+                this.columnidFakturyVAT = new global::System.Data.DataColumn("idFakturyVAT", typeof(int), null, global::System.Data.MappingType.Element);
+                base.Columns.Add(this.columnidFakturyVAT);
                 this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
                                 this.columnID_FAKTURY}, true));
@@ -17898,4 +17912,14 @@
             private global::System.Data.DataColumn columnwaluta_miano;
             
+            private global::System.Data.DataColumn columnliczbaReklam;
+            
+            private global::System.Data.DataColumn columnKOREKTA;
+            
+            private global::System.Data.DataColumn columnwaluta_brutto;
+            
+            private global::System.Data.DataColumn columnidFakturyVAT;
+            
+            private global::System.Data.DataColumn columnID_FK_KOR;
+            
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             public VIEW_KOREKTYDataTable() {
@@ -18177,4 +18201,39 @@
                 get {
                     return this.columnwaluta_miano;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            public global::System.Data.DataColumn liczbaReklamColumn {
+                get {
+                    return this.columnliczbaReklam;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            public global::System.Data.DataColumn KOREKTAColumn {
+                get {
+                    return this.columnKOREKTA;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            public global::System.Data.DataColumn waluta_bruttoColumn {
+                get {
+                    return this.columnwaluta_brutto;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            public global::System.Data.DataColumn idFakturyVATColumn {
+                get {
+                    return this.columnidFakturyVAT;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            public global::System.Data.DataColumn ID_FK_KORColumn {
+                get {
+                    return this.columnID_FK_KOR;
                 }
             }
@@ -18244,5 +18303,10 @@
                         string agent, 
                         double waluta_roznica_brutto, 
-                        string waluta_miano) {
+                        string waluta_miano, 
+                        int liczbaReklam, 
+                        bool KOREKTA, 
+                        double waluta_brutto, 
+                        int idFakturyVAT, 
+                        int ID_FK_KOR) {
                 VIEW_KOREKTYRow rowVIEW_KOREKTYRow = ((VIEW_KOREKTYRow)(this.NewRow()));
                 object[] columnValuesArray = new object[] {
@@ -18282,5 +18346,10 @@
                         agent,
                         waluta_roznica_brutto,
-                        waluta_miano};
+                        waluta_miano,
+                        liczbaReklam,
+                        KOREKTA,
+                        waluta_brutto,
+                        idFakturyVAT,
+                        ID_FK_KOR};
                 rowVIEW_KOREKTYRow.ItemArray = columnValuesArray;
                 this.Rows.Add(rowVIEW_KOREKTYRow);
@@ -18343,4 +18412,9 @@
                 this.columnwaluta_roznica_brutto = base.Columns["waluta_roznica_brutto"];
                 this.columnwaluta_miano = base.Columns["waluta_miano"];
+                this.columnliczbaReklam = base.Columns["liczbaReklam"];
+                this.columnKOREKTA = base.Columns["KOREKTA"];
+                this.columnwaluta_brutto = base.Columns["waluta_brutto"];
+                this.columnidFakturyVAT = base.Columns["idFakturyVAT"];
+                this.columnID_FK_KOR = base.Columns["ID_FK_KOR"];
             }
             
@@ -18419,4 +18493,14 @@
                 this.columnwaluta_miano = new global::System.Data.DataColumn("waluta_miano", typeof(string), null, global::System.Data.MappingType.Element);
                 base.Columns.Add(this.columnwaluta_miano);
+                this.columnliczbaReklam = new global::System.Data.DataColumn("liczbaReklam", typeof(int), null, global::System.Data.MappingType.Element);
+                base.Columns.Add(this.columnliczbaReklam);
+                this.columnKOREKTA = new global::System.Data.DataColumn("KOREKTA", typeof(bool), null, global::System.Data.MappingType.Element);
+                base.Columns.Add(this.columnKOREKTA);
+                this.columnwaluta_brutto = new global::System.Data.DataColumn("waluta_brutto", typeof(double), null, global::System.Data.MappingType.Element);
+                base.Columns.Add(this.columnwaluta_brutto);
+                this.columnidFakturyVAT = new global::System.Data.DataColumn("idFakturyVAT", typeof(int), null, global::System.Data.MappingType.Element);
+                base.Columns.Add(this.columnidFakturyVAT);
+                this.columnID_FK_KOR = new global::System.Data.DataColumn("ID_FK_KOR", typeof(int), null, global::System.Data.MappingType.Element);
+                base.Columns.Add(this.columnID_FK_KOR);
                 this.columnID_FAKTURY.AutoIncrement = true;
                 this.columnID_FAKTURY.AllowDBNull = false;
@@ -18437,4 +18521,5 @@
                 this.columnwaluta_roznica_brutto.ReadOnly = true;
                 this.columnwaluta_miano.MaxLength = 4;
+                this.columnKOREKTA.AllowDBNull = false;
             }
             
@@ -22941,4 +23026,19 @@
             
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            public int idFakturyVAT {
+                get {
+                    try {
+                        return ((int)(this[this.tableFAKTURY.idFakturyVATColumn]));
+                    }
+                    catch (global::System.InvalidCastException e) {
+                        throw new global::System.Data.StrongTypingException("The value for column \'idFakturyVAT\' in table \'FAKTURY\' is DBNull.", e);
+                    }
+                }
+                set {
+                    this[this.tableFAKTURY.idFakturyVATColumn] = value;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             public KLIENCIRow KLIENCIRow {
                 get {
@@ -23328,4 +23428,14 @@
             public void SetidFakturyKorektaNull() {
                 this[this.tableFAKTURY.idFakturyKorektaColumn] = global::System.Convert.DBNull;
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            public bool IsidFakturyVATNull() {
+                return this.IsNull(this.tableFAKTURY.idFakturyVATColumn);
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            public void SetidFakturyVATNull() {
+                this[this.tableFAKTURY.idFakturyVATColumn] = global::System.Convert.DBNull;
             }
             
@@ -33192,4 +33302,74 @@
             
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            public int liczbaReklam {
+                get {
+                    try {
+                        return ((int)(this[this.tableVIEW_KOREKTY.liczbaReklamColumn]));
+                    }
+                    catch (global::System.InvalidCastException e) {
+                        throw new global::System.Data.StrongTypingException("The value for column \'liczbaReklam\' in table \'VIEW_KOREKTY\' is DBNull.", e);
+                    }
+                }
+                set {
+                    this[this.tableVIEW_KOREKTY.liczbaReklamColumn] = value;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            public bool KOREKTA {
+                get {
+                    return ((bool)(this[this.tableVIEW_KOREKTY.KOREKTAColumn]));
+                }
+                set {
+                    this[this.tableVIEW_KOREKTY.KOREKTAColumn] = value;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            public double waluta_brutto {
+                get {
+                    try {
+                        return ((double)(this[this.tableVIEW_KOREKTY.waluta_bruttoColumn]));
+                    }
+                    catch (global::System.InvalidCastException e) {
+                        throw new global::System.Data.StrongTypingException("The value for column \'waluta_brutto\' in table \'VIEW_KOREKTY\' is DBNull.", e);
+                    }
+                }
+                set {
+                    this[this.tableVIEW_KOREKTY.waluta_bruttoColumn] = value;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            public int idFakturyVAT {
+                get {
+                    try {
+                        return ((int)(this[this.tableVIEW_KOREKTY.idFakturyVATColumn]));
+                    }
+                    catch (global::System.InvalidCastException e) {
+                        throw new global::System.Data.StrongTypingException("The value for column \'idFakturyVAT\' in table \'VIEW_KOREKTY\' is DBNull.", e);
+                    }
+                }
+                set {
+                    this[this.tableVIEW_KOREKTY.idFakturyVATColumn] = value;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            public int ID_FK_KOR {
+                get {
+                    try {
+                        return ((int)(this[this.tableVIEW_KOREKTY.ID_FK_KORColumn]));
+                    }
+                    catch (global::System.InvalidCastException e) {
+                        throw new global::System.Data.StrongTypingException("The value for column \'ID_FK_KOR\' in table \'VIEW_KOREKTY\' is DBNull.", e);
+                    }
+                }
+                set {
+                    this[this.tableVIEW_KOREKTY.ID_FK_KORColumn] = value;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             public bool IsCustomerIdNull() {
                 return this.IsNull(this.tableVIEW_KOREKTY.CustomerIdColumn);
@@ -33539,4 +33719,44 @@
             public void Setwaluta_mianoNull() {
                 this[this.tableVIEW_KOREKTY.waluta_mianoColumn] = global::System.Convert.DBNull;
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            public bool IsliczbaReklamNull() {
+                return this.IsNull(this.tableVIEW_KOREKTY.liczbaReklamColumn);
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            public void SetliczbaReklamNull() {
+                this[this.tableVIEW_KOREKTY.liczbaReklamColumn] = global::System.Convert.DBNull;
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            public bool Iswaluta_bruttoNull() {
+                return this.IsNull(this.tableVIEW_KOREKTY.waluta_bruttoColumn);
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            public void Setwaluta_bruttoNull() {
+                this[this.tableVIEW_KOREKTY.waluta_bruttoColumn] = global::System.Convert.DBNull;
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            public bool IsidFakturyVATNull() {
+                return this.IsNull(this.tableVIEW_KOREKTY.idFakturyVATColumn);
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            public void SetidFakturyVATNull() {
+                this[this.tableVIEW_KOREKTY.idFakturyVATColumn] = global::System.Convert.DBNull;
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            public bool IsID_FK_KORNull() {
+                return this.IsNull(this.tableVIEW_KOREKTY.ID_FK_KORColumn);
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            public void SetID_FK_KORNull() {
+                this[this.tableVIEW_KOREKTY.ID_FK_KORColumn] = global::System.Convert.DBNull;
             }
         }
@@ -39427,4 +39647,5 @@
             tableMapping.ColumnMappings.Add("idFakturyKorekta", "idFakturyKorekta");
             tableMapping.ColumnMappings.Add("KOREKTA", "KOREKTA");
+            tableMapping.ColumnMappings.Add("idFakturyVAT", "idFakturyVAT");
             this._adapter.TableMappings.Add(tableMapping);
             this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
@@ -39443,21 +39664,22 @@
                 "_opis], [Zaliczka_Brutto], [Zaliczka_Data], [waluta_brutto], [waluta_miano], [wa" +
                 "luta_kurs], [waluta_przelicznik], [waluta_kurs_z_dnia], [waluta_tabela_nr], [idZ" +
-                "amowienia], [idFakturyKorekta], [KOREKTA]) VALUES (@NUMER, @NUMER_ROZ, @NUMER_RO" +
-                "K, @DATA_WYSTAWIENIA, @MIEJSCOWOSC_WYSTAWIENIA, @ID_SPRZEDAWCY, @ID_NABYWCY, @DA" +
-                "TA_SPRZEDAZY, @PODPIS_WYSTAWIL, @PODPIS_ODEBRAL, @opis, @SPOSOB_ZAPLATY, @TERMIN" +
-                "_ZAPLATY, @ZAPLACONO, @BYL_WYDRUK, @NABYWCA_ADRES, @SPRZEDAWCA_ADRES, @SPRZEDAWC" +
-                "A_NIP, @NABYWCA_NIP, @FAKTURA_TYP, @FAKTURA_PODTYP, @ID_KONTA, @EKSPORT, @EXPORT" +
-                "ED, @ID_TYTUL, @EXPORTED_DATA, @suma_zaplat, @ID_FK_KOR, @zaplata_data, @zaplata" +
-                "_opis, @Zaliczka_Brutto, @Zaliczka_Data, @waluta_brutto, @waluta_miano, @waluta_" +
-                "kurs, @waluta_przelicznik, @waluta_kurs_z_dnia, @waluta_tabela_nr, @idZamowienia" +
-                ", @idFakturyKorekta, @KOREKTA);\r\nSELECT ID_FAKTURY, NUMER, NUMER_ROZ, NUMER_ROK," +
-                " DATA_WYSTAWIENIA, MIEJSCOWOSC_WYSTAWIENIA, ID_SPRZEDAWCY, ID_NABYWCY, DATA_SPRZ" +
-                "EDAZY, PODPIS_WYSTAWIL, PODPIS_ODEBRAL, opis, SPOSOB_ZAPLATY, TERMIN_ZAPLATY, ZA" +
-                "PLACONO, BYL_WYDRUK, NABYWCA_ADRES, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, NABYWCA_NI" +
-                "P, FAKTURA_TYP, FAKTURA_PODTYP, ID_KONTA, EKSPORT, EXPORTED, ID_TYTUL, EXPORTED_" +
-                "DATA, suma_zaplat, ID_FK_KOR, zaplata_data, zaplata_opis, Zaliczka_Brutto, Zalic" +
-                "zka_Data, waluta_brutto, waluta_miano, waluta_kurs, waluta_przelicznik, waluta_k" +
-                "urs_z_dnia, waluta_tabela_nr, idZamowienia, idFakturyKorekta, KOREKTA FROM FAKTU" +
-                "RY WHERE (ID_FAKTURY = SCOPE_IDENTITY())";
+                "amowienia], [idFakturyKorekta], [KOREKTA], [idFakturyVAT]) VALUES (@NUMER, @NUME" +
+                "R_ROZ, @NUMER_ROK, @DATA_WYSTAWIENIA, @MIEJSCOWOSC_WYSTAWIENIA, @ID_SPRZEDAWCY, " +
+                "@ID_NABYWCY, @DATA_SPRZEDAZY, @PODPIS_WYSTAWIL, @PODPIS_ODEBRAL, @opis, @SPOSOB_" +
+                "ZAPLATY, @TERMIN_ZAPLATY, @ZAPLACONO, @BYL_WYDRUK, @NABYWCA_ADRES, @SPRZEDAWCA_A" +
+                "DRES, @SPRZEDAWCA_NIP, @NABYWCA_NIP, @FAKTURA_TYP, @FAKTURA_PODTYP, @ID_KONTA, @" +
+                "EKSPORT, @EXPORTED, @ID_TYTUL, @EXPORTED_DATA, @suma_zaplat, @ID_FK_KOR, @zaplat" +
+                "a_data, @zaplata_opis, @Zaliczka_Brutto, @Zaliczka_Data, @waluta_brutto, @waluta" +
+                "_miano, @waluta_kurs, @waluta_przelicznik, @waluta_kurs_z_dnia, @waluta_tabela_n" +
+                "r, @idZamowienia, @idFakturyKorekta, @KOREKTA, @idFakturyVAT);\r\nSELECT ID_FAKTUR" +
+                "Y, NUMER, NUMER_ROZ, NUMER_ROK, DATA_WYSTAWIENIA, MIEJSCOWOSC_WYSTAWIENIA, ID_SP" +
+                "RZEDAWCY, ID_NABYWCY, DATA_SPRZEDAZY, PODPIS_WYSTAWIL, PODPIS_ODEBRAL, opis, SPO" +
+                "SOB_ZAPLATY, TERMIN_ZAPLATY, ZAPLACONO, BYL_WYDRUK, NABYWCA_ADRES, SPRZEDAWCA_AD" +
+                "RES, SPRZEDAWCA_NIP, NABYWCA_NIP, FAKTURA_TYP, FAKTURA_PODTYP, ID_KONTA, EKSPORT" +
+                ", EXPORTED, ID_TYTUL, EXPORTED_DATA, suma_zaplat, ID_FK_KOR, zaplata_data, zapla" +
+                "ta_opis, Zaliczka_Brutto, Zaliczka_Data, waluta_brutto, waluta_miano, waluta_kur" +
+                "s, waluta_przelicznik, waluta_kurs_z_dnia, waluta_tabela_nr, idZamowienia, idFak" +
+                "turyKorekta, KOREKTA, idFakturyVAT FROM FAKTURY WHERE (ID_FAKTURY = SCOPE_IDENTI" +
+                "TY())";
             this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
             this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NUMER", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NUMER", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -39502,4 +39724,5 @@
             this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idFakturyKorekta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idFakturyKorekta", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
             this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KOREKTA", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KOREKTA", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+            this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idFakturyVAT", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idFakturyVAT", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
             this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
             this._adapter.UpdateCommand.Connection = this.Connection;
@@ -39520,14 +39743,14 @@
                 "[waluta_przelicznik] = @waluta_przelicznik, [waluta_kurs_z_dnia] = @waluta_kurs_" +
                 "z_dnia, [waluta_tabela_nr] = @waluta_tabela_nr, [idZamowienia] = @idZamowienia, " +
-                "[idFakturyKorekta] = @idFakturyKorekta, [KOREKTA] = @KOREKTA WHERE (([ID_FAKTURY" +
-                "] = @Original_ID_FAKTURY));\r\nSELECT ID_FAKTURY, NUMER, NUMER_ROZ, NUMER_ROK, DAT" +
-                "A_WYSTAWIENIA, MIEJSCOWOSC_WYSTAWIENIA, ID_SPRZEDAWCY, ID_NABYWCY, DATA_SPRZEDAZ" +
-                "Y, PODPIS_WYSTAWIL, PODPIS_ODEBRAL, opis, SPOSOB_ZAPLATY, TERMIN_ZAPLATY, ZAPLAC" +
-                "ONO, BYL_WYDRUK, NABYWCA_ADRES, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, NABYWCA_NIP, F" +
-                "AKTURA_TYP, FAKTURA_PODTYP, ID_KONTA, EKSPORT, EXPORTED, ID_TYTUL, EXPORTED_DATA" +
-                ", suma_zaplat, ID_FK_KOR, zaplata_data, zaplata_opis, Zaliczka_Brutto, Zaliczka_" +
-                "Data, waluta_brutto, waluta_miano, waluta_kurs, waluta_przelicznik, waluta_kurs_" +
-                "z_dnia, waluta_tabela_nr, idZamowienia, idFakturyKorekta, KOREKTA FROM FAKTURY W" +
-                "HERE (ID_FAKTURY = @ID_FAKTURY)";
+                "[idFakturyKorekta] = @idFakturyKorekta, [KOREKTA] = @KOREKTA, [idFakturyVAT] = @" +
+                "idFakturyVAT WHERE (([ID_FAKTURY] = @Original_ID_FAKTURY));\r\nSELECT ID_FAKTURY, " +
+                "NUMER, NUMER_ROZ, NUMER_ROK, DATA_WYSTAWIENIA, MIEJSCOWOSC_WYSTAWIENIA, ID_SPRZE" +
+                "DAWCY, ID_NABYWCY, DATA_SPRZEDAZY, PODPIS_WYSTAWIL, PODPIS_ODEBRAL, opis, SPOSOB" +
+                "_ZAPLATY, TERMIN_ZAPLATY, ZAPLACONO, BYL_WYDRUK, NABYWCA_ADRES, SPRZEDAWCA_ADRES" +
+                ", SPRZEDAWCA_NIP, NABYWCA_NIP, FAKTURA_TYP, FAKTURA_PODTYP, ID_KONTA, EKSPORT, E" +
+                "XPORTED, ID_TYTUL, EXPORTED_DATA, suma_zaplat, ID_FK_KOR, zaplata_data, zaplata_" +
+                "opis, Zaliczka_Brutto, Zaliczka_Data, waluta_brutto, waluta_miano, waluta_kurs, " +
+                "waluta_przelicznik, waluta_kurs_z_dnia, waluta_tabela_nr, idZamowienia, idFaktur" +
+                "yKorekta, KOREKTA, idFakturyVAT FROM FAKTURY WHERE (ID_FAKTURY = @ID_FAKTURY)";
             this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
             this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NUMER", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NUMER", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -39572,4 +39795,5 @@
             this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idFakturyKorekta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idFakturyKorekta", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
             this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KOREKTA", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "KOREKTA", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+            this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idFakturyVAT", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idFakturyVAT", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
             this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID_FAKTURY", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID_FAKTURY", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
             this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID_FAKTURY", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID_FAKTURY", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -39591,30 +39815,30 @@
                       NABYWCA_ADRES, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, NABYWCA_NIP, FAKTURA_TYP, FAKTURA_PODTYP, ID_KONTA, EKSPORT, 
                       EXPORTED, ID_TYTUL, EXPORTED_DATA, suma_zaplat, ID_FK_KOR, zaplata_data, zaplata_opis, Zaliczka_Brutto, Zaliczka_Data, waluta_brutto, 
-                      waluta_miano, waluta_kurs, waluta_przelicznik, waluta_kurs_z_dnia, waluta_tabela_nr, idZamowienia, idFakturyKorekta, KOREKTA
+                      waluta_miano, waluta_kurs, waluta_przelicznik, waluta_kurs_z_dnia, waluta_tabela_nr, idZamowienia, idFakturyKorekta, KOREKTA, idFakturyVAT
 FROM         FAKTURY";
             this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
             this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
             this._commandCollection[1].Connection = this.Connection;
-            this._commandCollection[1].CommandText = @"SELECT TOP 1 BYL_WYDRUK, DATA_SPRZEDAZY, DATA_WYSTAWIENIA, EKSPORT, EXPORTED, EXPORTED_DATA, FAKTURA_PODTYP, FAKTURA_TYP, ID_FAKTURY, ID_FK_KOR, ID_KONTA, ID_NABYWCY, ID_SPRZEDAWCY, ID_TYTUL, KOREKTA, MIEJSCOWOSC_WYSTAWIENIA, NABYWCA_ADRES, NABYWCA_NIP, NUMER, NUMER_ROK, NUMER_ROZ, PODPIS_ODEBRAL, PODPIS_WYSTAWIL, SPOSOB_ZAPLATY, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, TERMIN_ZAPLATY, ZAPLACONO, Zaliczka_Brutto, Zaliczka_Data, idFakturyKorekta, idZamowienia, opis, suma_zaplat, waluta_brutto, waluta_kurs, waluta_kurs_z_dnia, waluta_miano, waluta_przelicznik, waluta_tabela_nr, zaplata_data, zaplata_opis FROM FAKTURY WHERE (idFakturyKorekta = @param)";
+            this._commandCollection[1].CommandText = @"SELECT TOP 1 BYL_WYDRUK, DATA_SPRZEDAZY, DATA_WYSTAWIENIA, EKSPORT, EXPORTED, EXPORTED_DATA, FAKTURA_PODTYP, FAKTURA_TYP, ID_FAKTURY, ID_FK_KOR, ID_KONTA, ID_NABYWCY, ID_SPRZEDAWCY, ID_TYTUL, KOREKTA, MIEJSCOWOSC_WYSTAWIENIA, NABYWCA_ADRES, NABYWCA_NIP, NUMER, NUMER_ROK, NUMER_ROZ, PODPIS_ODEBRAL, PODPIS_WYSTAWIL, SPOSOB_ZAPLATY, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, TERMIN_ZAPLATY, ZAPLACONO, Zaliczka_Brutto, Zaliczka_Data, idFakturyKorekta, idFakturyVAT, idZamowienia, opis, suma_zaplat, waluta_brutto, waluta_kurs, waluta_kurs_z_dnia, waluta_miano, waluta_przelicznik, waluta_tabela_nr, zaplata_data, zaplata_opis FROM FAKTURY WHERE (idFakturyKorekta = @param)";
             this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
             this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@param", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idFakturyKorekta", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
             this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
             this._commandCollection[2].Connection = this.Connection;
-            this._commandCollection[2].CommandText = @"SELECT BYL_WYDRUK, DATA_SPRZEDAZY, DATA_WYSTAWIENIA, EKSPORT, EXPORTED, EXPORTED_DATA, FAKTURA_PODTYP, FAKTURA_TYP, ID_FAKTURY, ID_FK_KOR, ID_KONTA, ID_NABYWCY, ID_SPRZEDAWCY, ID_TYTUL, KOREKTA, MIEJSCOWOSC_WYSTAWIENIA, NABYWCA_ADRES, NABYWCA_NIP, NUMER, NUMER_ROK, NUMER_ROZ, PODPIS_ODEBRAL, PODPIS_WYSTAWIL, SPOSOB_ZAPLATY, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, TERMIN_ZAPLATY, ZAPLACONO, Zaliczka_Brutto, Zaliczka_Data, idFakturyKorekta, idZamowienia, opis, suma_zaplat, waluta_brutto, waluta_kurs, waluta_kurs_z_dnia, waluta_miano, waluta_przelicznik, waluta_tabela_nr, zaplata_data, zaplata_opis FROM FAKTURY WHERE (ID_FAKTURY = @param)";
+            this._commandCollection[2].CommandText = @"SELECT BYL_WYDRUK, DATA_SPRZEDAZY, DATA_WYSTAWIENIA, EKSPORT, EXPORTED, EXPORTED_DATA, FAKTURA_PODTYP, FAKTURA_TYP, ID_FAKTURY, ID_FK_KOR, ID_KONTA, ID_NABYWCY, ID_SPRZEDAWCY, ID_TYTUL, KOREKTA, MIEJSCOWOSC_WYSTAWIENIA, NABYWCA_ADRES, NABYWCA_NIP, NUMER, NUMER_ROK, NUMER_ROZ, PODPIS_ODEBRAL, PODPIS_WYSTAWIL, SPOSOB_ZAPLATY, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, TERMIN_ZAPLATY, ZAPLACONO, Zaliczka_Brutto, Zaliczka_Data, idFakturyKorekta, idFakturyVAT, idZamowienia, opis, suma_zaplat, waluta_brutto, waluta_kurs, waluta_kurs_z_dnia, waluta_miano, waluta_przelicznik, waluta_tabela_nr, zaplata_data, zaplata_opis FROM FAKTURY WHERE (ID_FAKTURY = @param)";
             this._commandCollection[2].CommandType = global::System.Data.CommandType.Text;
             this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@param", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID_FAKTURY", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
             this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
             this._commandCollection[3].Connection = this.Connection;
-            this._commandCollection[3].CommandText = @"SELECT BYL_WYDRUK, DATA_SPRZEDAZY, DATA_WYSTAWIENIA, EKSPORT, EXPORTED, EXPORTED_DATA, FAKTURA_PODTYP, FAKTURA_TYP, ID_FAKTURY, ID_FK_KOR, ID_KONTA, ID_NABYWCY, ID_SPRZEDAWCY, ID_TYTUL, KOREKTA, MIEJSCOWOSC_WYSTAWIENIA, NABYWCA_ADRES, NABYWCA_NIP, NUMER, NUMER_ROK, NUMER_ROZ, PODPIS_ODEBRAL, PODPIS_WYSTAWIL, SPOSOB_ZAPLATY, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, TERMIN_ZAPLATY, ZAPLACONO, Zaliczka_Brutto, Zaliczka_Data, idFakturyKorekta, idZamowienia, opis, suma_zaplat, waluta_brutto, waluta_kurs, waluta_kurs_z_dnia, waluta_miano, waluta_przelicznik, waluta_tabela_nr, zaplata_data, zaplata_opis FROM FAKTURY WHERE (ID_NABYWCY = @param)";
+            this._commandCollection[3].CommandText = @"SELECT BYL_WYDRUK, DATA_SPRZEDAZY, DATA_WYSTAWIENIA, EKSPORT, EXPORTED, EXPORTED_DATA, FAKTURA_PODTYP, FAKTURA_TYP, ID_FAKTURY, ID_FK_KOR, ID_KONTA, ID_NABYWCY, ID_SPRZEDAWCY, ID_TYTUL, KOREKTA, MIEJSCOWOSC_WYSTAWIENIA, NABYWCA_ADRES, NABYWCA_NIP, NUMER, NUMER_ROK, NUMER_ROZ, PODPIS_ODEBRAL, PODPIS_WYSTAWIL, SPOSOB_ZAPLATY, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, TERMIN_ZAPLATY, ZAPLACONO, Zaliczka_Brutto, Zaliczka_Data, idFakturyKorekta, idFakturyVAT, idZamowienia, opis, suma_zaplat, waluta_brutto, waluta_kurs, waluta_kurs_z_dnia, waluta_miano, waluta_przelicznik, waluta_tabela_nr, zaplata_data, zaplata_opis FROM FAKTURY WHERE (ID_NABYWCY = @param)";
             this._commandCollection[3].CommandType = global::System.Data.CommandType.Text;
             this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@param", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID_NABYWCY", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
             this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
             this._commandCollection[4].Connection = this.Connection;
-            this._commandCollection[4].CommandText = @"SELECT TOP 100 BYL_WYDRUK, DATA_SPRZEDAZY, DATA_WYSTAWIENIA, EKSPORT, EXPORTED, EXPORTED_DATA, FAKTURA_PODTYP, FAKTURA_TYP, ID_FAKTURY, ID_FK_KOR, ID_KONTA, ID_NABYWCY, ID_SPRZEDAWCY, ID_TYTUL, KOREKTA, MIEJSCOWOSC_WYSTAWIENIA, NABYWCA_ADRES, NABYWCA_NIP, NUMER, NUMER_ROK, NUMER_ROZ, PODPIS_ODEBRAL, PODPIS_WYSTAWIL, SPOSOB_ZAPLATY, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, TERMIN_ZAPLATY, ZAPLACONO, Zaliczka_Brutto, Zaliczka_Data, idFakturyKorekta, idZamowienia, opis, suma_zaplat, waluta_brutto, waluta_kurs, waluta_kurs_z_dnia, waluta_miano, waluta_przelicznik, waluta_tabela_nr, zaplata_data, zaplata_opis FROM FAKTURY WHERE (idZamowienia = @param)";
+            this._commandCollection[4].CommandText = @"SELECT TOP 100 BYL_WYDRUK, DATA_SPRZEDAZY, DATA_WYSTAWIENIA, EKSPORT, EXPORTED, EXPORTED_DATA, FAKTURA_PODTYP, FAKTURA_TYP, ID_FAKTURY, ID_FK_KOR, ID_KONTA, ID_NABYWCY, ID_SPRZEDAWCY, ID_TYTUL, KOREKTA, MIEJSCOWOSC_WYSTAWIENIA, NABYWCA_ADRES, NABYWCA_NIP, NUMER, NUMER_ROK, NUMER_ROZ, PODPIS_ODEBRAL, PODPIS_WYSTAWIL, SPOSOB_ZAPLATY, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, TERMIN_ZAPLATY, ZAPLACONO, Zaliczka_Brutto, Zaliczka_Data, idFakturyKorekta, idFakturyVAT, idZamowienia, opis, suma_zaplat, waluta_brutto, waluta_kurs, waluta_kurs_z_dnia, waluta_miano, waluta_przelicznik, waluta_tabela_nr, zaplata_data, zaplata_opis FROM FAKTURY WHERE (idZamowienia = @param)";
             this._commandCollection[4].CommandType = global::System.Data.CommandType.Text;
             this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@param", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idZamowienia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
             this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand();
             this._commandCollection[5].Connection = this.Connection;
-            this._commandCollection[5].CommandText = @"SELECT BYL_WYDRUK, DATA_SPRZEDAZY, DATA_WYSTAWIENIA, EKSPORT, EXPORTED, EXPORTED_DATA, FAKTURA_PODTYP, FAKTURA_TYP, ID_FAKTURY, ID_FK_KOR, ID_KONTA, ID_NABYWCY, ID_SPRZEDAWCY, ID_TYTUL, KOREKTA, MIEJSCOWOSC_WYSTAWIENIA, NABYWCA_ADRES, NABYWCA_NIP, NUMER, NUMER_ROK, NUMER_ROZ, PODPIS_ODEBRAL, PODPIS_WYSTAWIL, SPOSOB_ZAPLATY, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, TERMIN_ZAPLATY, ZAPLACONO, Zaliczka_Brutto, Zaliczka_Data, idFakturyKorekta, idZamowienia, opis, suma_zaplat, waluta_brutto, waluta_kurs, waluta_kurs_z_dnia, waluta_miano, waluta_przelicznik, waluta_tabela_nr, zaplata_data, zaplata_opis FROM FAKTURY WHERE (NUMER_ROZ = @param)";
+            this._commandCollection[5].CommandText = @"SELECT BYL_WYDRUK, DATA_SPRZEDAZY, DATA_WYSTAWIENIA, EKSPORT, EXPORTED, EXPORTED_DATA, FAKTURA_PODTYP, FAKTURA_TYP, ID_FAKTURY, ID_FK_KOR, ID_KONTA, ID_NABYWCY, ID_SPRZEDAWCY, ID_TYTUL, KOREKTA, MIEJSCOWOSC_WYSTAWIENIA, NABYWCA_ADRES, NABYWCA_NIP, NUMER, NUMER_ROK, NUMER_ROZ, PODPIS_ODEBRAL, PODPIS_WYSTAWIL, SPOSOB_ZAPLATY, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, TERMIN_ZAPLATY, ZAPLACONO, Zaliczka_Brutto, Zaliczka_Data, idFakturyKorekta, idFakturyVAT, idZamowienia, opis, suma_zaplat, waluta_brutto, waluta_kurs, waluta_kurs_z_dnia, waluta_miano, waluta_przelicznik, waluta_tabela_nr, zaplata_data, zaplata_opis FROM FAKTURY WHERE (NUMER_ROZ = @param)";
             this._commandCollection[5].CommandType = global::System.Data.CommandType.Text;
             this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@param", global::System.Data.SqlDbType.NVarChar, 8, global::System.Data.ParameterDirection.Input, 0, 0, "NUMER_ROZ", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -39893,5 +40117,6 @@
                     global::System.Nullable<int> idZamowienia, 
                     global::System.Nullable<int> idFakturyKorekta, 
-                    bool KOREKTA) {
+                    bool KOREKTA, 
+                    global::System.Nullable<int> idFakturyVAT) {
             if ((NUMER.HasValue == true)) {
                 this.Adapter.InsertCommand.Parameters[0].Value = ((int)(NUMER.Value));
@@ -40125,4 +40350,10 @@
             }
             this.Adapter.InsertCommand.Parameters[40].Value = ((bool)(KOREKTA));
+            if ((idFakturyVAT.HasValue == true)) {
+                this.Adapter.InsertCommand.Parameters[41].Value = ((int)(idFakturyVAT.Value));
+            }
+            else {
+                this.Adapter.InsertCommand.Parameters[41].Value = global::System.DBNull.Value;
+            }
             global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
             if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) 
@@ -40186,4 +40417,5 @@
                     global::System.Nullable<int> idFakturyKorekta, 
                     bool KOREKTA, 
+                    global::System.Nullable<int> idFakturyVAT, 
                     int Original_ID_FAKTURY, 
                     int ID_FAKTURY) {
@@ -40419,6 +40651,12 @@
             }
             this.Adapter.UpdateCommand.Parameters[40].Value = ((bool)(KOREKTA));
-            this.Adapter.UpdateCommand.Parameters[41].Value = ((int)(Original_ID_FAKTURY));
-            this.Adapter.UpdateCommand.Parameters[42].Value = ((int)(ID_FAKTURY));
+            if ((idFakturyVAT.HasValue == true)) {
+                this.Adapter.UpdateCommand.Parameters[41].Value = ((int)(idFakturyVAT.Value));
+            }
+            else {
+                this.Adapter.UpdateCommand.Parameters[41].Value = global::System.DBNull.Value;
+            }
+            this.Adapter.UpdateCommand.Parameters[42].Value = ((int)(Original_ID_FAKTURY));
+            this.Adapter.UpdateCommand.Parameters[43].Value = ((int)(ID_FAKTURY));
             global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
             if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) 
@@ -40482,6 +40720,7 @@
                     global::System.Nullable<int> idFakturyKorekta, 
                     bool KOREKTA, 
+                    global::System.Nullable<int> idFakturyVAT, 
                     int Original_ID_FAKTURY) {
-            return this.Update(NUMER, NUMER_ROZ, NUMER_ROK, DATA_WYSTAWIENIA, MIEJSCOWOSC_WYSTAWIENIA, ID_SPRZEDAWCY, ID_NABYWCY, DATA_SPRZEDAZY, PODPIS_WYSTAWIL, PODPIS_ODEBRAL, opis, SPOSOB_ZAPLATY, TERMIN_ZAPLATY, ZAPLACONO, BYL_WYDRUK, NABYWCA_ADRES, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, NABYWCA_NIP, FAKTURA_TYP, FAKTURA_PODTYP, ID_KONTA, EKSPORT, EXPORTED, ID_TYTUL, EXPORTED_DATA, suma_zaplat, ID_FK_KOR, zaplata_data, zaplata_opis, Zaliczka_Brutto, Zaliczka_Data, waluta_brutto, waluta_miano, waluta_kurs, waluta_przelicznik, waluta_kurs_z_dnia, waluta_tabela_nr, idZamowienia, idFakturyKorekta, KOREKTA, Original_ID_FAKTURY, Original_ID_FAKTURY);
+            return this.Update(NUMER, NUMER_ROZ, NUMER_ROK, DATA_WYSTAWIENIA, MIEJSCOWOSC_WYSTAWIENIA, ID_SPRZEDAWCY, ID_NABYWCY, DATA_SPRZEDAZY, PODPIS_WYSTAWIL, PODPIS_ODEBRAL, opis, SPOSOB_ZAPLATY, TERMIN_ZAPLATY, ZAPLACONO, BYL_WYDRUK, NABYWCA_ADRES, SPRZEDAWCA_ADRES, SPRZEDAWCA_NIP, NABYWCA_NIP, FAKTURA_TYP, FAKTURA_PODTYP, ID_KONTA, EKSPORT, EXPORTED, ID_TYTUL, EXPORTED_DATA, suma_zaplat, ID_FK_KOR, zaplata_data, zaplata_opis, Zaliczka_Brutto, Zaliczka_Data, waluta_brutto, waluta_miano, waluta_kurs, waluta_przelicznik, waluta_kurs_z_dnia, waluta_tabela_nr, idZamowienia, idFakturyKorekta, KOREKTA, idFakturyVAT, Original_ID_FAKTURY, Original_ID_FAKTURY);
         }
     }
@@ -49546,4 +49785,9 @@
             tableMapping.ColumnMappings.Add("waluta_roznica_brutto", "waluta_roznica_brutto");
             tableMapping.ColumnMappings.Add("waluta_miano", "waluta_miano");
+            tableMapping.ColumnMappings.Add("liczbaReklam", "liczbaReklam");
+            tableMapping.ColumnMappings.Add("KOREKTA", "KOREKTA");
+            tableMapping.ColumnMappings.Add("waluta_brutto", "waluta_brutto");
+            tableMapping.ColumnMappings.Add("idFakturyVAT", "idFakturyVAT");
+            tableMapping.ColumnMappings.Add("ID_FK_KOR", "ID_FK_KOR");
             this._adapter.TableMappings.Add(tableMapping);
         }
@@ -49560,8 +49804,8 @@
             this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
             this._commandCollection[0].Connection = this.Connection;
-            this._commandCollection[0].CommandText = @"SELECT     ID_FAKTURY, CustomerId, Id_Agencji, kodKlienta, NUMER, NUMER_ROZ, NUMER_ROK, netto, S_VAT, vat, brutto, suma_zaplat, DATA_WYSTAWIENIA, 
-                      DATA_SPRZEDAZY, TERMIN_ZAPLATY, zaplata_data, zaplata_opis, idZamowienia, idFakturyKorekta, NR_FAKTURY_KOREKTY, NUMER_F, 
-                      NUMER_ROZ_F, NUMER_ROK_F, netto_F, brutto_F, vat_F, suma_zapłat_F, data_wystawienia_F, NR_FAKTURY, roznica_netto, roznica_vat, 
-                      roznica_brutto, agencja, agent, waluta_roznica_brutto, waluta_miano
+            this._commandCollection[0].CommandText = @"SELECT     ID_FAKTURY, CustomerId, Id_Agencji, kodKlienta, NUMER, NUMER_ROZ, NUMER_ROK, netto, S_VAT, vat, brutto, liczbaReklam, suma_zaplat, 
+                      DATA_WYSTAWIENIA, DATA_SPRZEDAZY, TERMIN_ZAPLATY, zaplata_data, zaplata_opis, idZamowienia, KOREKTA, idFakturyKorekta, agent, 
+                      waluta_brutto, waluta_miano, idFakturyVAT, ID_FK_KOR, NR_FAKTURY_KOREKTY, NUMER_F, NUMER_ROZ_F, NUMER_ROK_F, netto_F, brutto_F, 
+                      vat_F, suma_zapłat_F, data_wystawienia_F, NR_FAKTURY, roznica_netto, roznica_vat, roznica_brutto, agencja, waluta_roznica_brutto
 FROM         VIEW_KOREKTY";
             this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
Index: Baza Reklam 2 - Faktury/Raporty/zamowienie.xml
===================================================================
--- Baza Reklam 2 - Faktury/Raporty/zamowienie.xml (revision 2)
+++ Baza Reklam 2 - Faktury/Raporty/zamowienie.xml (revision 34)
@@ -2,4 +2,10 @@
 <test xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <jezyk id="ang">
+    <reklama>Ad</reklama>
+    <calosc>orders</calosc>
+    <co3ms>every third month</co3ms>
+    <co1ms>every month</co1ms>
+    <fakturowanie>Invoice</fakturowanie>
+    <bruttoWwalucie>gross in currency</bruttoWwalucie>
     <typ_modulu>Modules type:</typ_modulu>
     <sposob_zaplaty_poczatekprzelew>By transfer, due date:</sposob_zaplaty_poczatekprzelew>
@@ -71,4 +77,10 @@
   </jezyk>
   <jezyk id="de">
+    <reklama>die Werbung</reklama>
+    <calosc>orders</calosc>
+    <co3ms>jede drei Monate</co3ms>
+    <co1ms>monatlich</co1ms>
+    <fakturowanie>Die Fakturierung</fakturowanie>
+    <bruttoWwalucie>Brutto in der WÃ€hrung</bruttoWwalucie>
     <typ_modulu>Modulen Typ:</typ_modulu>
     <sposob_zaplaty_poczatekprzelew>BankÃŒberweisung bis:</sposob_zaplaty_poczatekprzelew>
@@ -137,4 +149,12 @@
   </jezyk>
   <jezyk id="pl">
+    <reklama>Reklama</reklama>
+    <calosc>zamÃ³wienia</calosc>
+    <co3ms>co trzy miesiÄ
+ce</co3ms>
+    <co1ms>co miesiÄ
+c</co1ms>
+    <fakturowanie>Fakturowanie</fakturowanie>
+    <bruttoWwalucie>Brutto w walucie</bruttoWwalucie>
     <typ_modulu>Typ moduÅu:</typ_modulu>
     <sposob_zaplaty_poczatekprzelew>Przelewem do dnia:</sposob_zaplaty_poczatekprzelew>
@@ -189,6 +209,6 @@
     <Reklama_Druk_Zamowienia_Newlabel_kolor>Kolor:</Reklama_Druk_Zamowienia_Newlabel_kolor>
     <Reklama_Druk_Zamowienia_Newlabel_ilosc_emisji>Il.</Reklama_Druk_Zamowienia_Newlabel_ilosc_emisji>
-    <Reklama_Druk_Zamowienia_Newlabel_wysokosc>Wys.</Reklama_Druk_Zamowienia_Newlabel_wysokosc>
-    <Reklama_Druk_Zamowienia_Newlabel_szerokoÅÄ>Szer.</Reklama_Druk_Zamowienia_Newlabel_szerokoÅÄ>
+    <Reklama_Druk_Zamowienia_Newlabel_wysokosc>W</Reklama_Druk_Zamowienia_Newlabel_wysokosc>
+    <Reklama_Druk_Zamowienia_Newlabel_szerokoÅÄ>S</Reklama_Druk_Zamowienia_Newlabel_szerokoÅÄ>
     <Reklama_Druk_Zamowienia_Newlabel_cena>Cena:</Reklama_Druk_Zamowienia_Newlabel_cena>
     <Reklama_Druk_Zamowienia_Newlabel_zamÃ³wienie_nr>ZamÃ³wienie nr:</Reklama_Druk_Zamowienia_Newlabel_zamÃ³wienie_nr>
@@ -213,5 +233,11 @@
   </jezyk>
   <jezyk id="ru">
-   <typ_modulu>ÑÐžÐ¿ ÐŒÐŸÐŽÑÐ»Ð°:</typ_modulu>
+    <reklama></reklama>
+    <calosc></calosc>
+    <co3ms></co3ms>
+    <co1ms></co1ms>
+    <fakturowanie></fakturowanie>
+    <bruttoWwalucie></bruttoWwalucie>
+    <typ_modulu>ÑÐžÐ¿ ÐŒÐŸÐŽÑÐ»Ð°:</typ_modulu>
     <sposob_zaplaty_poczatekprzelew>ÐÐ°ÐœÐºÐŸÐ²ÑÐºÐžÐŒ Ð¿ÐµÑÐµÐ²ÐŸÐŽÐŸÐŒ Ð² ÑÐµÑÐµÐœÐžÐµ</sposob_zaplaty_poczatekprzelew>
     <sposob_zaplaty_koniecprzelew>ÐœÐ° ÑÑÑÑ</sposob_zaplaty_koniecprzelew>
@@ -281,4 +307,10 @@
   </jezyk>
   <jezyk id="fr">
+    <reklama>publicitÃ©</reklama>
+    <calosc>commandes</calosc>
+    <co3ms>tous les 3 mois</co3ms>
+    <co1ms>tous les mois</co1ms>
+    <fakturowanie>Facturation</fakturowanie>
+    <bruttoWwalucie>brut en monnaie</bruttoWwalucie>
     <FAKTURY_DRUK_INTERNATIONALlabel_faktura_vat>FACTURE NUMERO		</FAKTURY_DRUK_INTERNATIONALlabel_faktura_vat>
     <FAKTURY_DRUK_INTERNATIONALlabel_oryginal_kopia>ORIGINAL / COPIE		</FAKTURY_DRUK_INTERNATIONALlabel_oryginal_kopia>
Index: Baza Reklam 2 - Faktury/Raporty/zamowienie2.rdlc
===================================================================
--- Baza Reklam 2 - Faktury/Raporty/zamowienie2.rdlc (revision 26)
+++ Baza Reklam 2 - Faktury/Raporty/zamowienie2.rdlc (revision 34)
@@ -924,4 +924,28 @@
     <DataSet Name="tlumaczenia">
       <Fields>
+        <Field Name="reklama">
+          <DataField>reklama</DataField>
+          <rd:TypeName>System.String</rd:TypeName>
+        </Field>
+        <Field Name="calosc">
+          <DataField>calosc</DataField>
+          <rd:TypeName>System.String</rd:TypeName>
+        </Field>
+        <Field Name="co3ms">
+          <DataField>co3ms</DataField>
+          <rd:TypeName>System.String</rd:TypeName>
+        </Field>
+        <Field Name="co1ms">
+          <DataField>co1ms</DataField>
+          <rd:TypeName>System.String</rd:TypeName>
+        </Field>
+        <Field Name="fakturowanie">
+          <DataField>fakturowanie</DataField>
+          <rd:TypeName>System.String</rd:TypeName>
+        </Field>
+        <Field Name="bruttoWwalucie">
+          <DataField>bruttoWwalucie</DataField>
+          <rd:TypeName>System.String</rd:TypeName>
+        </Field>
         <Field Name="typ_modulu">
           <DataField>typ_modulu</DataField>
@@ -1219,8 +1243,6 @@
             <CanGrow>true</CanGrow>
             <Height>0.45cm</Height>
-            <Value>=switch(First(Fields!rodzajFakturowania.Value, "zamowienie2") = 0, "co miesiÄ
-c", First(Fields!rodzajFakturowania.Value, "zamowienie2") = 1, "co 3 miesiÄ
-ce",
-First(Fields!rodzajFakturowania.Value, "zamowienie2") = 2, "zamÃ³wienia")</Value>
+            <Value>=switch(First(Fields!rodzajFakturowania.Value, "zamowienie2") = 0, First(Fields!co1ms.Value, "tlumaczenia"), First(Fields!rodzajFakturowania.Value, "zamowienie2") = 1, First(Fields!co3ms.Value, "tlumaczenia"),
+First(Fields!rodzajFakturowania.Value, "zamowienie2") = 2, First(Fields!calosc.Value, "tlumaczenia"))</Value>
           </Textbox>
           <Textbox Name="textbox35">
@@ -1238,5 +1260,5 @@
             <CanGrow>true</CanGrow>
             <Height>0.63492cm</Height>
-            <Value>Fakturowanie</Value>
+            <Value>=First(Fields!fakturowanie.Value, "tlumaczenia")</Value>
           </Textbox>
         </ReportItems>
@@ -1813,5 +1835,5 @@
                       <ZIndex>36</ZIndex>
                       <CanGrow>true</CanGrow>
-                      <Value>Reklama</Value>
+                      <Value>=First(Fields!reklama.Value, "tlumaczenia")</Value>
                     </Textbox>
                   </ReportItems>
@@ -2113,5 +2135,5 @@
                       <ZIndex>26</ZIndex>
                       <CanGrow>true</CanGrow>
-                      <Value>Brutto w walucie</Value>
+                      <Value>=First(Fields!bruttoWwalucie.Value, "tlumaczenia")</Value>
                     </Textbox>
                   </ReportItems>
Index: Baza Reklam 2 - Faktury/KorektyForm.cs
===================================================================
--- Baza Reklam 2 - Faktury/KorektyForm.cs (revision 33)
+++ Baza Reklam 2 - Faktury/KorektyForm.cs (revision 34)
@@ -421,5 +421,5 @@
 
                 this.Cursor = Cursors.WaitCursor;
-                FactureViewer fv = new FactureViewer(faktura.idFakturyKorekta,faktura.ID_FAKTURY);
+                FactureViewer fv = new FactureViewer(faktura.ID_FAKTURY, faktura.idFakturyVAT,faktura.idFakturyKorekta);
                 fv.ShowDialog();
                 
