Index: branches/Abonament/BazaReklam/ZamowieniaForm.cs
===================================================================
--- branches/Abonament/BazaReklam/ZamowieniaForm.cs (revision 705)
+++ branches/Abonament/BazaReklam/ZamowieniaForm.cs (revision 706)
@@ -21,5 +21,5 @@
         private AgentRepository agentRepository;
         private Agent agent;
-        
+
         private REKLAMADataSet.KLIENCIRow klient;
         private int idZamowienia;
@@ -49,5 +49,5 @@
             new SLOWNIKDataSetTableAdapters.Kursy_WalutTableAdapter();
 
-        
+
         public ZamowieniaForm(REKLAMADataSet.KLIENCIRow klient)
         {
@@ -113,5 +113,5 @@
         {
             BindProductsWithoutOrders();
-            
+
             usunFaktureButton.Enabled = User.Instance().IsKierownik;
             dtpZmianaDaty.Enabled = User.Instance().IsKierownik;
@@ -135,5 +135,5 @@
 
             if (klient == null) return;
-            
+
             KlientLabel.Text = klient.IskodKlientaNull()
                                    ? "BRAK KODU KLIENTA"
@@ -183,9 +183,9 @@
             if (zamowieniaBindingSource.Current == null || rEKLAMADataGridView1.SelectedRows.Count <= 0) return;
 
-            DataRowView z = (DataRowView) zamowieniaBindingSource.Current;
-            REKLAMADataSet.zamowieniaRow zamowienie = (REKLAMADataSet.zamowieniaRow) z.Row;
-
-            IProduct product = (IProduct) rEKLAMADataGridView1.SelectedRows[0].DataBoundItem;
-            
+            DataRowView z = (DataRowView)zamowieniaBindingSource.Current;
+            REKLAMADataSet.zamowieniaRow zamowienie = (REKLAMADataSet.zamowieniaRow)z.Row;
+
+            IProduct product = (IProduct)rEKLAMADataGridView1.SelectedRows[0].DataBoundItem;
+
             string s = string.Empty;
             if (!CanAddProductToOrder(product, productsWithOrder, zamowienie, out s))
@@ -227,5 +227,5 @@
             StringBuilder sb = new StringBuilder();
             bool canAddProduct = true;
-            
+
             if (order.zafakturowanoWszystko || order.zafakturowano)
             {
@@ -233,5 +233,5 @@
                 canAddProduct = false;
             }
-            
+
             if (products.FindAll(delegate(IProduct p) { return p.Currency != product.Currency && p.OrderId == order.idZamowienia; }).Count > 0)
             {
@@ -245,5 +245,5 @@
             }
 
-            if(canAddProduct && product.ProductType == ProductType.Advertisment)
+            if (canAddProduct && product.ProductType == ProductType.Advertisment)
             {
                 if (datyWydanTableAdapter.GetDataByPierwszaEmisjaWReklamie(product.Id).Rows.Count <= 0)
@@ -262,9 +262,9 @@
             if (zamowieniaBindingSource.Current == null || rEKLAMADataGridView.SelectedRows.Count == 0) return;
 
-            IProduct product = (IProduct) rEKLAMADataGridView.SelectedRows[0].DataBoundItem;
+            IProduct product = (IProduct)rEKLAMADataGridView.SelectedRows[0].DataBoundItem;
 
             if (product.HasInvoice)
             {
-                MessageBox.Show("Wybrany produkt posiada ju¿ zafakturowane elementy. Nie mo¿na go usun¹æ.", 
+                MessageBox.Show("Wybrany produkt posiada ju¿ zafakturowane elementy. Nie mo¿na go usun¹æ.",
                                 "Baza Reklam - Zamówienia i faktury");
                 return;
@@ -272,10 +272,10 @@
 
             customerRepository.RemoveProductFromOrder(product);
-            
+
             productsWithOrder.Remove(product);
             int orderId = product.OrderId.Value;
             product.OrderId = null;
             productsWithoutOrder.Add(product);
-            
+
             BindProductsWithOrders(orderId);
             BindProductsWithoutOrders();
@@ -290,6 +290,6 @@
                 Cursor = Cursors.WaitCursor;
 
-                DataRowView z = (DataRowView) zamowieniaBindingSource.Current;
-                REKLAMADataSet.zamowieniaRow zamowienie = (REKLAMADataSet.zamowieniaRow) z.Row;
+                DataRowView z = (DataRowView)zamowieniaBindingSource.Current;
+                REKLAMADataSet.zamowieniaRow zamowienie = (REKLAMADataSet.zamowieniaRow)z.Row;
 
                 InitIssueTables(zamowienie);
@@ -363,5 +363,5 @@
                     wplatyTableAdapter.Update(rEKLAMADataSet.Wplaty);
 
-                    int il = (int) emisjeTableAdapter.iloscNiezafakturowanychEmisjiWZamowieniu(zamowienie.idZamowienia);
+                    int il = (int)emisjeTableAdapter.iloscNiezafakturowanychEmisjiWZamowieniu(zamowienie.idZamowienia);
                     if (il == 0 && !proforma)
                     {
@@ -458,5 +458,5 @@
                     fakturaDetailsRow.BRUTTO = Convert.ToDecimal((1 + vat) * netto);
                 }
-                else if(naglowekFaktury.Iswaluta_mianoNull() && klientRow.Country.ToUpper() != "POLSKA")
+                else if (naglowekFaktury.Iswaluta_mianoNull() && klientRow.Country.ToUpper() != "POLSKA")
                 {
                     decimal vat = Convert.ToDecimal(reklama.VAT);
@@ -467,5 +467,5 @@
                     fakturaDetailsRow.S_VAT = reklama.VAT;
                     fakturaDetailsRow.BRUTTO = Convert.ToDecimal((1 + vat) * netto);
-                    
+
                     decimal brutto = fakturaDetailsRow.BRUTTO;
 
@@ -474,5 +474,5 @@
                     fakturaDetailsRow.UPUST_PR = reklama.RABAT;
                     if (fakturaDetailsRow.UPUST_PR != 0)
-                        fakturaDetailsRow.UPUST_NETTO = Math.Round(netto/(Convert.ToDecimal(reklama.RABAT) - netto), 2);
+                        fakturaDetailsRow.UPUST_NETTO = Math.Round(netto / (Convert.ToDecimal(reklama.RABAT) - netto), 2);
                     else
                         fakturaDetailsRow.UPUST_NETTO = 0;
@@ -511,5 +511,4 @@
             foreach (IProduct subscription in subscriptionsToInvoice)
             {
-
                 foreach (IProductDetail subscriptionDetail in subscription.ProductDetails)
                 {
@@ -519,7 +518,6 @@
                     fakturaDetailsRow.MIESIAC = (short)subscriptionDetail.Month;
                     //TODO: Add Title to Subscription schema
-                    //fakturaDetailsRow.TYTUL = subscriptionDetail;
-                    //TODO: Nazwa uslugi dla reklamy i abonamentu
-                    fakturaDetailsRow.NAZWA_USLUGI = subscriptionDetail.ProductId + " | " + subscriptionDetail.Id;
+                    fakturaDetailsRow.TYTUL = (short)subscription.TitleId;
+                    fakturaDetailsRow.NAZWA_USLUGI = subscription.ShortName + " | " + subscriptionDetail.Id;
                     fakturaDetailsRow.reklamaId = subscription.Id;
                     fakturaDetailsRow.CENA_JEDN = subscription.Price;
@@ -545,6 +543,4 @@
                         bruttoWaluta += subscriptionDetail.Price;
                 }
-                
-                
             }
 
@@ -552,5 +548,5 @@
             if (bruttoWaluta != 0)
             {
-                naglowekFaktury.waluta_brutto = Math.Round(Convert.ToDouble(bruttoWaluta),2);
+                naglowekFaktury.waluta_brutto = Math.Round(Convert.ToDouble(bruttoWaluta), 2);
                 naglowekFaktury.EndEdit();
             }
@@ -629,5 +625,5 @@
                             if (reklama.wyroznienie)
                             {
-                                emisja.netto = Math.Round(Convert.ToDecimal(1 + reklama.wyroznienie_procent) * emisja.netto,2);
+                                emisja.netto = Math.Round(Convert.ToDecimal(1 + reklama.wyroznienie_procent) * emisja.netto, 2);
                             }
                         }
@@ -635,6 +631,6 @@
                         {
                             decimal temp = Math.Round(
-                                Convert.ToDecimal(reklama.Brutto_Euro * naglowekFaktury.waluta_kurs / naglowekFaktury.waluta_przelicznik),2);
-                            emisja.netto = Convert.ToDecimal(temp /reklama.KROTNOÆ);
+                                Convert.ToDecimal(reklama.Brutto_Euro * naglowekFaktury.waluta_kurs / naglowekFaktury.waluta_przelicznik), 2);
+                            emisja.netto = Convert.ToDecimal(temp / reklama.KROTNOÆ);
                         }
 
@@ -677,5 +673,5 @@
             SLOWNIKDataSet.AGENCJERow agencja = (SLOWNIKDataSet.AGENCJERow)agencjeTableAdapter.GetDataByKodAgenta(zamowienie.kodAgenta).Rows[0];
             naglowekFaktury.ID_SPRZEDAWCY = agencja.Id_agencji;
-            
+
             //Set EKSPORT to true to avoid to export this invoice to SoftLab FK accounting system
             if (naglowekFaktury.ID_SPRZEDAWCY == 4 || naglowekFaktury.ID_SPRZEDAWCY == 6)
@@ -693,8 +689,8 @@
             naglowekFaktury.NABYWCA_ADRES = klientRow.Adres_Fkatura;
             naglowekFaktury.NABYWCA_NIP = klientRow.Nip;
-            naglowekFaktury.opis = "Faktura za reklamy zgodnie z zamówieniem: " 
-                                                + klientRow.kodKlienta + 
-                                                "/" + zamowienie.nrZamowienia + 
-                                                "/" + zamowienie.kodAgenta + 
+            naglowekFaktury.opis = "Faktura za reklamy zgodnie z zamówieniem: "
+                                                + klientRow.kodKlienta +
+                                                "/" + zamowienie.nrZamowienia +
+                                                "/" + zamowienie.kodAgenta +
                                                 "/" + zamowienie.rokZamowienia;
 
@@ -841,5 +837,5 @@
                 DataRowView row = (DataRowView)fAKTURYBindingSource.Current;
                 REKLAMADataSet.FAKTURYRow faktura = (REKLAMADataSet.FAKTURYRow)row.Row;
-                                
+
                 if (Convert.ToBoolean(faktura.KOREKTA))
                 {
@@ -853,5 +849,5 @@
                 {
                     MessageBox.Show("Istnieje ju¿ faktura korekta");
-                 //   return;
+                    //   return;
                 }
 
@@ -866,5 +862,5 @@
                         naglowekKorekty.idFakturyKorekta = faktura.ID_FK_KOR;
                     }
-            
+
                     SqlConnection conn = new SqlConnection(ConnString.getConnString().Value);
 
@@ -1009,5 +1005,5 @@
 
                     REKLAMADataSet.REKLAMARow reklama = (REKLAMADataSet.REKLAMARow)em.GetParentRow("REKLAMA_UKAZE_SIE_W_NR");
-                                       
+
                     fakturaDetailsRow.ROK = Convert.ToInt16(dataWydania.rok);
                     fakturaDetailsRow.MIESIAC = Convert.ToInt16(dataWydania.ms);
@@ -1072,5 +1068,5 @@
             if (brutto_waluta != 0)
             {
-                naglowekFaktury.waluta_brutto = Math.Round(Convert.ToDouble(brutto_waluta),2);
+                naglowekFaktury.waluta_brutto = Math.Round(Convert.ToDouble(brutto_waluta), 2);
                 naglowekFaktury.EndEdit();
             }
@@ -1131,5 +1127,5 @@
             if (rEKLAMADataGridView.SelectedRows.Count <= 0) return;
 
-            IProduct product = (IProduct) rEKLAMADataGridView.SelectedRows[0].DataBoundItem;
+            IProduct product = (IProduct)rEKLAMADataGridView.SelectedRows[0].DataBoundItem;
             if (product.ProductType != ProductType.Advertisment) return;
 
@@ -1170,6 +1166,6 @@
             if (zamowieniaBindingSource.Current == null) return;
 
-            DataRowView z = (DataRowView) zamowieniaBindingSource.Current;
-            REKLAMADataSet.zamowieniaRow zamowienie = (REKLAMADataSet.zamowieniaRow) z.Row;
+            DataRowView z = (DataRowView)zamowieniaBindingSource.Current;
+            REKLAMADataSet.zamowieniaRow zamowienie = (REKLAMADataSet.zamowieniaRow)z.Row;
 
             BindProductsWithOrders(zamowienie.idZamowienia);
@@ -1242,23 +1238,23 @@
             int idZam = korekta.idZamowienia;
 
-              int i = fAKTURYBindingSource.Find("ID_FK_KOR",idKorekty);
-         
+            int i = fAKTURYBindingSource.Find("ID_FK_KOR", idKorekty);
+
             REKLAMADataSet.FAKTURYRow korygowanaFaktura = (REKLAMADataSet.FAKTURYRow)
                 ((DataRowView)fAKTURYBindingSource.List[i]).Row;
 
-             int j = fAKTURYBindingSource.Find("ID_FAKTURY",idKorygowanejFaktury);
-
-             if (j > -1 && i!= j)
-             {
-                 REKLAMADataSet.FAKTURYRow poprzedniaKorekta = (REKLAMADataSet.FAKTURYRow)
-                     ((DataRowView)fAKTURYBindingSource.List[j]).Row;
-
-                 korygowanaFaktura.ID_FK_KOR = poprzedniaKorekta.ID_FAKTURY;
-             }
-             else
-             {
-                 korygowanaFaktura.SetID_FK_KORNull();
-             }
-            
+            int j = fAKTURYBindingSource.Find("ID_FAKTURY", idKorygowanejFaktury);
+
+            if (j > -1 && i != j)
+            {
+                REKLAMADataSet.FAKTURYRow poprzedniaKorekta = (REKLAMADataSet.FAKTURYRow)
+                    ((DataRowView)fAKTURYBindingSource.List[j]).Row;
+
+                korygowanaFaktura.ID_FK_KOR = poprzedniaKorekta.ID_FAKTURY;
+            }
+            else
+            {
+                korygowanaFaktura.SetID_FK_KORNull();
+            }
+
             fAKTURYBindingSource.EndEdit();
 
@@ -1321,5 +1317,5 @@
             REKLAMADataSet.zamowieniaRow zamowienie =
                 (REKLAMADataSet.zamowieniaRow)zam.Row;
-         
+
             if (zmienReklamyOrazZamowienie)
             {
@@ -1336,5 +1332,5 @@
             zamowienie.SetdataOstatniejZafakturowanejEmisjiNull();
             zamowienie.EndEdit();
-           
+
             SqlConnection conn = new SqlConnection(ConnString.getConnString().Value);
 
@@ -1386,6 +1382,6 @@
             Cursor = Cursors.WaitCursor;
 
-            DataRowView z = (DataRowView) zamowieniaBindingSource.Current;
-            REKLAMADataSet.zamowieniaRow zamowienie = (REKLAMADataSet.zamowieniaRow) z.Row;
+            DataRowView z = (DataRowView)zamowieniaBindingSource.Current;
+            REKLAMADataSet.zamowieniaRow zamowienie = (REKLAMADataSet.zamowieniaRow)z.Row;
 
             InitIssueTables(zamowienie);
@@ -1434,9 +1430,11 @@
             ProductRepository productRepository = new ProductRepository(ConnString.getConnString().Value);
             List<IProduct> subscriptions = products.FindAll(delegate(IProduct p) { return p.ProductType == ProductType.Subscription; });
+            
+            if (subscriptions.Count == 0) return new List<IProduct>();
+            
             DateTime date = productRepository.FindFirstDateForInvoice(subscriptions);
             List<IProduct> subscriptionsToInvoice = productRepository.FindProductsToInvoice(subscriptions, InvoicingType.ThreeMonths, date);
             return subscriptionsToInvoice;
         }
-
     }
 }
Index: branches/Abonament/BazaReklam/raporty.xsd
===================================================================
--- branches/Abonament/BazaReklam/raporty.xsd (revision 648)
+++ branches/Abonament/BazaReklam/raporty.xsd (revision 706)
@@ -290,9 +290,9 @@
                     <CommandText>SELECT     FAKTURA_DETAILS.JM, SUM(FAKTURA_DETAILS.ILOSC) AS ILOSC, SUM(FAKTURA_DETAILS.NETTO) AS NETTO, FAKTURA_DETAILS.S_VAT, 
                       SUM(FAKTURA_DETAILS.BRUTTO) AS BRUTTO, SUM(FAKTURA_DETAILS.VAT) AS VAT, [LISTA TYTUÅÃW].SYMB, FAKTURA_DETAILS.NR_WYDANIA, 
-                      FAKTURA_DETAILS.NAZWA_USLUGI, FAKTURA_DETAILS.MIESIAC, FAKTURA_DETAILS.ROK, FAKTURA_DETAILS.ReklamaId
+                      FAKTURA_DETAILS.NAZWA_USLUGI, FAKTURA_DETAILS.MIESIAC, FAKTURA_DETAILS.ROK, FAKTURA_DETAILS.ReklamaId, FAKTURA_DETAILS.Typ
 FROM         FAKTURA_DETAILS LEFT OUTER JOIN
                       [LISTA TYTUÅÃW] ON FAKTURA_DETAILS.TYTUL = [LISTA TYTUÅÃW ].id
 GROUP BY FAKTURA_DETAILS.JM, FAKTURA_DETAILS.S_VAT, FAKTURA_DETAILS.ID_FAKTURY, [LISTA TYTUÅÃW].SYMB, FAKTURA_DETAILS.NR_WYDANIA, 
-                      FAKTURA_DETAILS.NAZWA_USLUGI, FAKTURA_DETAILS.MIESIAC, FAKTURA_DETAILS.ROK, FAKTURA_DETAILS.ReklamaId
+                      FAKTURA_DETAILS.NAZWA_USLUGI, FAKTURA_DETAILS.MIESIAC, FAKTURA_DETAILS.ROK, FAKTURA_DETAILS.ReklamaId,  FAKTURA_DETAILS.Typ
 HAVING      (FAKTURA_DETAILS.ID_FAKTURY = @idFaktury)</CommandText>
                     <Parameters>
@@ -317,4 +317,5 @@
               <Mapping SourceColumn="ROK" DataSetColumn="ROK" />
               <Mapping SourceColumn="ReklamaId" DataSetColumn="ReklamaId" />
+              <Mapping SourceColumn="Typ" DataSetColumn="Typ" />
             </Mappings>
             <Sources>
@@ -443,4 +444,217 @@
           <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:element name="ReklamaId" msprop:Generator_UserColumnName="ReklamaId" msprop:Generator_ColumnPropNameInRow="ReklamaId" msprop:Generator_ColumnVarNameInTable="columnReklamaId" msprop:Generator_ColumnPropNameInTable="ReklamaIdColumn" type="xs:int" 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" />
@@ -532,4 +746,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">
@@ -581,5 +796,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">
@@ -588,219 +803,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: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>
-        </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:element name="ReklamaId" msprop:Generator_UserColumnName="ReklamaId" msprop:Generator_ColumnVarNameInTable="columnReklamaId" msprop:Generator_ColumnPropNameInRow="ReklamaId" msprop:Generator_ColumnPropNameInTable="ReklamaIdColumn" type="xs:int" 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">
@@ -813,4 +814,222 @@
         </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: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="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="ReklamaId" msprop:Generator_UserColumnName="ReklamaId" msprop:Generator_ColumnVarNameInTable="columnReklamaId" msprop:Generator_ColumnPropNameInRow="ReklamaId" msprop:Generator_ColumnPropNameInTable="ReklamaIdColumn" type="xs:int" 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: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>
@@ -889,4 +1108,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>
@@ -925,4 +1151,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>
@@ -932,4 +1160,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>
@@ -939,6 +1177,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">
@@ -947,26 +1192,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">
@@ -975,229 +1201,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: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="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="ReklamaId" msprop:Generator_UserColumnName="ReklamaId" msprop:Generator_ColumnPropNameInRow="ReklamaId" msprop:Generator_ColumnVarNameInTable="columnReklamaId" msprop:Generator_ColumnPropNameInTable="ReklamaIdColumn" type="xs:int" minOccurs="0" />
-            </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">
@@ -1206,5 +1208,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">
@@ -1213,5 +1215,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>
@@ -1220,13 +1222,13 @@
           <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:int" />
-              <xs:element name="ShortName" msprop:Generator_UserColumnName="ShortName" msprop:Generator_ColumnPropNameInRow="ShortName" msprop:Generator_ColumnVarNameInTable="columnShortName" msprop:Generator_ColumnPropNameInTable="ShortNameColumn">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="50" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="Name" msprop:Generator_UserColumnName="Name" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInTable="NameColumn" minOccurs="0">
+              <xs:element name="Id" msprop:Generator_UserColumnName="Id" msprop:Generator_ColumnVarNameInTable="columnId" msprop:Generator_ColumnPropNameInRow="Id" msprop:Generator_ColumnPropNameInTable="IdColumn" type="xs:int" />
+              <xs:element name="ShortName" msprop:Generator_UserColumnName="ShortName" msprop:Generator_ColumnVarNameInTable="columnShortName" msprop:Generator_ColumnPropNameInRow="ShortName" msprop:Generator_ColumnPropNameInTable="ShortNameColumn">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="50" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="Name" msprop:Generator_UserColumnName="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" minOccurs="0">
                 <xs:simpleType>
                   <xs:restriction base="xs:string">
@@ -1235,47 +1237,47 @@
                 </xs:simpleType>
               </xs:element>
-              <xs:element name="Street" msprop:Generator_UserColumnName="Street" msprop:Generator_ColumnPropNameInRow="Street" msprop:Generator_ColumnVarNameInTable="columnStreet" msprop:Generator_ColumnPropNameInTable="StreetColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="50" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="City" msprop:Generator_UserColumnName="City" msprop:Generator_ColumnPropNameInRow="City" msprop:Generator_ColumnVarNameInTable="columnCity" msprop:Generator_ColumnPropNameInTable="CityColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="50" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="PostCode" msprop:Generator_UserColumnName="PostCode" msprop:Generator_ColumnPropNameInRow="PostCode" msprop:Generator_ColumnVarNameInTable="columnPostCode" msprop:Generator_ColumnPropNameInTable="PostCodeColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="50" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="Country" msprop:Generator_UserColumnName="Country" msprop:Generator_ColumnPropNameInRow="Country" msprop:Generator_ColumnVarNameInTable="columnCountry" msprop:Generator_ColumnPropNameInTable="CountryColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="50" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="Phone" msprop:Generator_UserColumnName="Phone" msprop:Generator_ColumnPropNameInRow="Phone" msprop:Generator_ColumnVarNameInTable="columnPhone" msprop:Generator_ColumnPropNameInTable="PhoneColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="50" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="TaxNumber" msprop:Generator_UserColumnName="TaxNumber" msprop:Generator_ColumnPropNameInRow="TaxNumber" msprop:Generator_ColumnVarNameInTable="columnTaxNumber" msprop:Generator_ColumnPropNameInTable="TaxNumberColumn" minOccurs="0">
-                <xs:simpleType>
-                  <xs:restriction base="xs:string">
-                    <xs:maxLength value="50" />
-                  </xs:restriction>
-                </xs:simpleType>
-              </xs:element>
-              <xs:element name="TaxCountryPrefix" msprop:Generator_UserColumnName="TaxCountryPrefix" msprop:Generator_ColumnPropNameInRow="TaxCountryPrefix" msprop:Generator_ColumnVarNameInTable="columnTaxCountryPrefix" msprop:Generator_ColumnPropNameInTable="TaxCountryPrefixColumn" minOccurs="0">
+              <xs:element name="Street" msprop:Generator_UserColumnName="Street" msprop:Generator_ColumnVarNameInTable="columnStreet" msprop:Generator_ColumnPropNameInRow="Street" msprop:Generator_ColumnPropNameInTable="StreetColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="50" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="City" msprop:Generator_UserColumnName="City" msprop:Generator_ColumnVarNameInTable="columnCity" msprop:Generator_ColumnPropNameInRow="City" msprop:Generator_ColumnPropNameInTable="CityColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="50" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="PostCode" msprop:Generator_UserColumnName="PostCode" msprop:Generator_ColumnVarNameInTable="columnPostCode" msprop:Generator_ColumnPropNameInRow="PostCode" msprop:Generator_ColumnPropNameInTable="PostCodeColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="50" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="Country" msprop:Generator_UserColumnName="Country" msprop:Generator_ColumnVarNameInTable="columnCountry" msprop:Generator_ColumnPropNameInRow="Country" msprop:Generator_ColumnPropNameInTable="CountryColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="50" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="Phone" msprop:Generator_UserColumnName="Phone" msprop:Generator_ColumnVarNameInTable="columnPhone" msprop:Generator_ColumnPropNameInRow="Phone" msprop:Generator_ColumnPropNameInTable="PhoneColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="50" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="TaxNumber" msprop:Generator_UserColumnName="TaxNumber" msprop:Generator_ColumnVarNameInTable="columnTaxNumber" msprop:Generator_ColumnPropNameInRow="TaxNumber" msprop:Generator_ColumnPropNameInTable="TaxNumberColumn" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="50" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="TaxCountryPrefix" msprop:Generator_UserColumnName="TaxCountryPrefix" msprop:Generator_ColumnVarNameInTable="columnTaxCountryPrefix" msprop:Generator_ColumnPropNameInRow="TaxCountryPrefix" msprop:Generator_ColumnPropNameInTable="TaxCountryPrefixColumn" minOccurs="0">
                 <xs:simpleType>
                   <xs:restriction base="xs:string">
@@ -1284,5 +1286,5 @@
                 </xs:simpleType>
               </xs:element>
-              <xs:element name="SystemKsiegowyId" msprop:Generator_UserColumnName="SystemKsiegowyId" msprop:Generator_ColumnPropNameInRow="SystemKsiegowyId" msprop:Generator_ColumnVarNameInTable="columnSystemKsiegowyId" msprop:Generator_ColumnPropNameInTable="SystemKsiegowyIdColumn" type="xs:unsignedByte" minOccurs="0" />
+              <xs:element name="SystemKsiegowyId" msprop:Generator_UserColumnName="SystemKsiegowyId" msprop:Generator_ColumnVarNameInTable="columnSystemKsiegowyId" msprop:Generator_ColumnPropNameInRow="SystemKsiegowyId" msprop:Generator_ColumnPropNameInTable="SystemKsiegowyIdColumn" type="xs:unsignedByte" minOccurs="0" />
             </xs:sequence>
           </xs:complexType>
Index: branches/Abonament/BazaReklam/raporty.xss
===================================================================
--- branches/Abonament/BazaReklam/raporty.xss (revision 648)
+++ branches/Abonament/BazaReklam/raporty.xss (revision 706)
@@ -11,8 +11,8 @@
     <Shape ID="DesignTable:Proforma" ZOrder="5" X="-601" Y="16" Height="305" Width="283" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
     <Shape ID="DesignTable:Zamowienie" ZOrder="7" X="-953" Y="-817" Height="301" Width="298" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
-    <Shape ID="DesignTable:FAKTURA_DETAILS2" ZOrder="3" X="-199" Y="-3" Height="275" Width="259" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
+    <Shape ID="DesignTable:FAKTURA_DETAILS2" ZOrder="3" X="-210" Y="-39" Height="292" Width="259" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="245" />
     <Shape ID="DesignTable:Zamowienie2" ZOrder="2" X="-952" Y="-463" Height="311" Width="291" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="264" />
     <Shape ID="DesignTable:InvoiceProvider" ZOrder="1" X="-477" Y="-789" Height="258" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="211" />
-    <Shape ID="DesignTable:emisje" ZOrder="6" X="-132" Y="234" Height="48" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="44" />
+    <Shape ID="DesignTable:emisje" ZOrder="6" X="-558" Y="-113" Height="48" Width="150" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="44" />
   </Shapes>
   <Connectors />
Index: branches/Abonament/BazaReklam/Classes/Interfaces/IProduct.cs
===================================================================
--- branches/Abonament/BazaReklam/Classes/Interfaces/IProduct.cs (revision 705)
+++ branches/Abonament/BazaReklam/Classes/Interfaces/IProduct.cs (revision 706)
@@ -8,4 +8,5 @@
     {
         int Id { get; set; }
+        int TitleId { get; set; }
         ProductType ProductType { get; set; }
         string Type { get; set; }
Index: branches/Abonament/BazaReklam/Classes/Repositories/CustomerRepository.cs
===================================================================
--- branches/Abonament/BazaReklam/Classes/Repositories/CustomerRepository.cs (revision 705)
+++ branches/Abonament/BazaReklam/Classes/Repositories/CustomerRepository.cs (revision 706)
@@ -41,6 +41,6 @@
         public override void Save(Customer customer)
         {
-            const string insertSubscriptionQuery = "INSERT INTO Subscription(Guid, CustomerId, SubscriptionTypeId, SubscriptionItems, BasePrice, TotalPrice, Discount, Currency, OrderId, CreatedOn, CreatedBy, UpdatedOn, UpdatedBy, StartDate) "
-                                 + "VALUES(@guid, @customerId, @subscriptionTypeId, @subscriptionItems, @basePrice, @totalPrice, @discount, @currency, @orderId, @createdOn, @createdBy, @updatedOn, @updatedBy, @startDate) "
+            const string insertSubscriptionQuery = "INSERT INTO Subscription(Guid, CustomerId, SubscriptionTypeId, SubscriptionItems, BasePrice, TotalPrice, Discount, Vat, Currency, OrderId, CreatedOn, CreatedBy, UpdatedOn, UpdatedBy, StartDate) "
+                                 + "VALUES(@guid, @customerId, @subscriptionTypeId, @subscriptionItems, @basePrice, @totalPrice, @discount, @vat, @currency, @orderId, @createdOn, @createdBy, @updatedOn, @updatedBy, @startDate) "
                                  + "SELECT SCOPE_IDENTITY();";
 
@@ -67,4 +67,5 @@
                     _command.Parameters.AddWithValue("@totalPrice", subscription.TotalPrice);
                     _command.Parameters.AddWithValue("@discount", subscription.Discount);
+                    _command.Parameters.AddWithValue("@vat", subscription.Vat);
                     _command.Parameters.AddWithValue("@currency", subscription.Currency);
                     if (subscription.OrderId > 0)
@@ -113,5 +114,5 @@
         public List<Subscription> FindSubscriptions(int customerId)
         {
-            string query = "SELECT Id, Guid, CustomerId, SubscriptionTypeId, SubscriptionItems, BasePrice, Discount, TotalPrice, Currency, OrderId, CreatedOn, CreatedBy, UpdatedOn, UpdatedBy, StartDate FROM Subscription WHERE CustomerId={0} ORDER BY UpdatedOn DESC";
+            string query = "SELECT Id, Guid, CustomerId, SubscriptionTypeId, SubscriptionItems, BasePrice, Discount, Vat, TotalPrice, Currency, OrderId, CreatedOn, CreatedBy, UpdatedOn, UpdatedBy, StartDate FROM Subscription WHERE CustomerId={0} ORDER BY UpdatedOn DESC";
             query = string.Format(query, customerId);
 
@@ -135,13 +136,14 @@
                         subscription.BasePrice = _reader.GetDecimal(5);
                         subscription.Discount = _reader.GetDecimal(6);
-                        subscription.TotalPrice = _reader.GetDecimal(7);
-                        subscription.Currency = _reader.GetString(8);
-                        if (_reader[9] != DBNull.Value)
-                            subscription.OrderId = _reader.GetInt32(9);
-                        subscription.CreatedOn = _reader.GetDateTime(10);
-                        subscription.CreatedBy = _reader.GetInt32(11);
-                        subscription.UpdatedOn = _reader.GetDateTime(12);
-                        subscription.UpdatedBy = _reader.GetInt32(13);
-                        subscription.StartDate = _reader.GetDateTime(14);
+                        subscription.Vat = _reader.GetDecimal(7);
+                        subscription.TotalPrice = _reader.GetDecimal(8);
+                        subscription.Currency = _reader.GetString(9);
+                        if (_reader[10] != DBNull.Value)
+                            subscription.OrderId = _reader.GetInt32(10);
+                        subscription.CreatedOn = _reader.GetDateTime(11);
+                        subscription.CreatedBy = _reader.GetInt32(12);
+                        subscription.UpdatedOn = _reader.GetDateTime(13);
+                        subscription.UpdatedBy = _reader.GetInt32(14);
+                        subscription.StartDate = _reader.GetDateTime(15);
 
                         subscriptions.Add(subscription);
@@ -178,17 +180,16 @@
                         Product product = new Product();
                         product.Id = _reader.GetInt32(0);
-                        product.Type = _reader.GetString(1);
-                        product.ProductType = (ProductType)_reader.GetInt32(2);
-                        product.ShortName = _reader.GetString(3);
-                        if (_reader[4] != DBNull.Value)
-                            product.StartDate = _reader.GetDateTime(4);
-                        else
-                            Debug.WriteLine(product.ShortName);
-                        product.Price = _reader.GetDecimal(5);
-                        product.TotalPrice = _reader.GetDecimal(6);
-                        product.Vat = _reader.GetDecimal(7);
-                        product.Currency = _reader.GetString(8);
-                        product.IsActivated = _reader.GetBoolean(9);
-                        product.HasInvoice = _reader.GetBoolean(10);
+                        product.TitleId = _reader.GetInt32(1);
+                        product.Type = _reader.GetString(2);
+                        product.ProductType = (ProductType)_reader.GetInt32(3);
+                        product.ShortName = _reader.GetString(4);
+                        if (_reader[5] != DBNull.Value)
+                            product.StartDate = _reader.GetDateTime(5);
+                        product.Price = _reader.GetDecimal(6);
+                        product.TotalPrice = _reader.GetDecimal(7);
+                        product.Vat = _reader.GetDecimal(8);
+                        product.Currency = _reader.GetString(9);
+                        product.IsActivated = _reader.GetBoolean(10);
+                        product.HasInvoice = _reader.GetBoolean(11);
 
                         products.Add(product);
@@ -225,16 +226,17 @@
                         Product product = new Product();
                         product.Id = _reader.GetInt32(0);
-                        product.Type = _reader.GetString(1);
-                        product.ProductType = (ProductType) _reader.GetInt32(2);
-                        product.ShortName = _reader.GetString(3);
-                        product.StartDate = _reader.GetDateTime(4);
-                        product.Price = _reader.GetDecimal(5);
-                        product.TotalPrice = _reader.GetDecimal(6);
-                        product.Vat = _reader.GetDecimal(7);
-                        product.Currency = _reader.GetString(8);
-                        product.IsActivated = _reader.GetBoolean(9);
-                        if (_reader[10] != DBNull.Value)
-                            product.OrderId = _reader.GetInt32(10);
-                        product.HasInvoice = _reader.GetBoolean(11);
+                        product.TitleId = _reader.GetInt32(1);
+                        product.Type = _reader.GetString(2);
+                        product.ProductType = (ProductType) _reader.GetInt32(3);
+                        product.ShortName = _reader.GetString(4);
+                        product.StartDate = _reader.GetDateTime(5);
+                        product.Price = _reader.GetDecimal(6);
+                        product.TotalPrice = _reader.GetDecimal(7);
+                        product.Vat = _reader.GetDecimal(8);
+                        product.Currency = _reader.GetString(9);
+                        product.IsActivated = _reader.GetBoolean(10);
+                        if (_reader[11] != DBNull.Value)
+                            product.OrderId = _reader.GetInt32(11);
+                        product.HasInvoice = _reader.GetBoolean(12);
 
                         products.Add(product);
Index: branches/Abonament/BazaReklam/Classes/Repositories/SubscriptionTypeRepository.cs
===================================================================
--- branches/Abonament/BazaReklam/Classes/Repositories/SubscriptionTypeRepository.cs (revision 703)
+++ branches/Abonament/BazaReklam/Classes/Repositories/SubscriptionTypeRepository.cs (revision 706)
@@ -14,5 +14,5 @@
         public override List<SubscriptionType> FindAll()
         {
-            const string query = "SELECT Id, Name, PricePln, PriceEur FROM dbo.SubscriptionType";
+            const string query = "SELECT Id, TitleId, Name, PricePln, PriceEur FROM dbo.SubscriptionType";
 
             List<SubscriptionType> subscriptionTypes = new List<SubscriptionType>();
@@ -29,7 +29,8 @@
                     {  
                         subscriptionTypes.Add(new SubscriptionType(_reader.GetInt32(0), 
-                                                                   _reader.GetString(1),
-                                                                   _reader.GetDecimal(2),
-                                                                   _reader.GetDecimal(3)));
+                                                                   _reader.GetInt32(1),
+                                                                   _reader.GetString(2),
+                                                                   _reader.GetDecimal(3),
+                                                                   _reader.GetDecimal(4)));
                     }
                 }
Index: branches/Abonament/BazaReklam/Classes/Model/Product.cs
===================================================================
--- branches/Abonament/BazaReklam/Classes/Model/Product.cs (revision 705)
+++ branches/Abonament/BazaReklam/Classes/Model/Product.cs (revision 706)
@@ -9,4 +9,5 @@
     {
         private int _id;
+        private int _titleId;
         private ProductType _productType;
         private string _type;
@@ -26,4 +27,10 @@
             get { return _id; }
             set { _id = value; }
+        }
+
+        public int TitleId
+        {
+            get { return _titleId; }
+            set { _titleId = value; }
         }
 
Index: branches/Abonament/BazaReklam/Classes/Model/Subscription.cs
===================================================================
--- branches/Abonament/BazaReklam/Classes/Model/Subscription.cs (revision 703)
+++ branches/Abonament/BazaReklam/Classes/Model/Subscription.cs (revision 706)
@@ -9,4 +9,5 @@
         private Guid _guid;
         private int _customerId;
+        private int _titleId;
         private int _subscriptionTypeId;
         private int _subscriptionItems;
@@ -14,4 +15,5 @@
         private decimal _totalPrice;
         private decimal _discount;
+        private decimal _vat;
         private string _currency;
         private DateTime _startDate;
@@ -33,7 +35,8 @@
         }
 
-        public Subscription(int id, Guid guid, int customerId, int subscriptionTypeId, int subscriptionItems, decimal basePrice, decimal totalPrice, decimal discount, string currency, int orderId, DateTime createdOn, int createdBy, DateTime updatedOn, int updatedBy, DateTime startDate)
+        public Subscription(int id, Guid guid, int customerId, int titleId, int subscriptionTypeId, int subscriptionItems, decimal basePrice, decimal totalPrice, decimal discount, decimal vat, string currency, int orderId, DateTime createdOn, int createdBy, DateTime updatedOn, int updatedBy, DateTime startDate)
         {
             _id = id;
+            _titleId = titleId;
             _startDate = startDate;
             _updatedBy = updatedBy;
@@ -45,4 +48,5 @@
             _basePrice = basePrice;
             _totalPrice = totalPrice;
+            _vat = vat;
             _discount = discount;
             _subscriptionItems = subscriptionItems;
@@ -56,4 +60,10 @@
             get { return _id; }
             //set { _id = value; }
+        }
+
+        public int TitleId
+        {
+            get { return _titleId; }
+            set { _titleId = value; }
         }
 
@@ -92,4 +102,10 @@
             get { return _discount; }
             set { _discount = value; }
+        }
+
+        public decimal Vat
+        {
+            get { return _vat; }
+            set { _vat = value; }
         }
 
Index: branches/Abonament/BazaReklam/Classes/Model/SubscriptionType.cs
===================================================================
--- branches/Abonament/BazaReklam/Classes/Model/SubscriptionType.cs (revision 703)
+++ branches/Abonament/BazaReklam/Classes/Model/SubscriptionType.cs (revision 706)
@@ -4,11 +4,13 @@
     {
         private readonly int _id;
+        private int _titleId;
         private string _name;
         private decimal _pricePln;
         private decimal _priceEur;
 
-        public SubscriptionType(int id, string name, decimal pricePln, decimal priceEur)
+        public SubscriptionType(int id, int titleId, string name, decimal pricePln, decimal priceEur)
         {
             _id = id;
+            _titleId = titleId;
             _priceEur = priceEur;
             _pricePln = pricePln;
@@ -38,4 +40,10 @@
             get { return _id; }
         }
+
+        public int TitleId
+        {
+            get { return _titleId; }
+            set { _titleId = value; }
+        }
     }
 }
Index: branches/Abonament/BazaReklam/raporty.Designer.cs
===================================================================
--- branches/Abonament/BazaReklam/raporty.Designer.cs (revision 648)
+++ branches/Abonament/BazaReklam/raporty.Designer.cs (revision 706)
@@ -3661,4 +3661,6 @@
             private global::System.Data.DataColumn columnReklamaId;
             
+            private global::System.Data.DataColumn columnTyp;
+            
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             public FAKTURA_DETAILS2DataTable() {
@@ -3776,4 +3778,11 @@
             
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            public global::System.Data.DataColumn TypColumn {
+                get {
+                    return this.columnTyp;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             [global::System.ComponentModel.Browsable(false)]
             public int Count {
@@ -3804,5 +3813,5 @@
             
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
-            public FAKTURA_DETAILS2Row AddFAKTURA_DETAILS2Row(string JM, int ILOSC, decimal NETTO, double S_VAT, decimal BRUTTO, decimal VAT, string SYMB, short NR_WYDANIA, string NAZWA_USLUGI, short MIESIAC, int ROK, int ReklamaId) {
+            public FAKTURA_DETAILS2Row AddFAKTURA_DETAILS2Row(string JM, int ILOSC, decimal NETTO, double S_VAT, decimal BRUTTO, decimal VAT, string SYMB, short NR_WYDANIA, string NAZWA_USLUGI, short MIESIAC, int ROK, int ReklamaId, short Typ) {
                 FAKTURA_DETAILS2Row rowFAKTURA_DETAILS2Row = ((FAKTURA_DETAILS2Row)(this.NewRow()));
                 object[] columnValuesArray = new object[] {
@@ -3818,5 +3827,6 @@
                         MIESIAC,
                         ROK,
-                        ReklamaId};
+                        ReklamaId,
+                        Typ};
                 rowFAKTURA_DETAILS2Row.ItemArray = columnValuesArray;
                 this.Rows.Add(rowFAKTURA_DETAILS2Row);
@@ -3855,4 +3865,5 @@
                 this.columnROK = base.Columns["ROK"];
                 this.columnReklamaId = base.Columns["ReklamaId"];
+                this.columnTyp = base.Columns["Typ"];
             }
             
@@ -3883,4 +3894,6 @@
                 this.columnReklamaId = new global::System.Data.DataColumn("ReklamaId", typeof(int), null, global::System.Data.MappingType.Element);
                 base.Columns.Add(this.columnReklamaId);
+                this.columnTyp = new global::System.Data.DataColumn("Typ", typeof(short), null, global::System.Data.MappingType.Element);
+                base.Columns.Add(this.columnTyp);
                 this.columnJM.MaxLength = 5;
                 this.columnILOSC.ReadOnly = true;
@@ -9479,4 +9492,19 @@
             
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            public short Typ {
+                get {
+                    try {
+                        return ((short)(this[this.tableFAKTURA_DETAILS2.TypColumn]));
+                    }
+                    catch (global::System.InvalidCastException e) {
+                        throw new global::System.Data.StrongTypingException("The value for column \'Typ\' in table \'FAKTURA_DETAILS2\' is DBNull.", e);
+                    }
+                }
+                set {
+                    this[this.tableFAKTURA_DETAILS2.TypColumn] = value;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             public bool IsJMNull() {
                 return this.IsNull(this.tableFAKTURA_DETAILS2.JMColumn);
@@ -9596,4 +9624,14 @@
             public void SetReklamaIdNull() {
                 this[this.tableFAKTURA_DETAILS2.ReklamaIdColumn] = global::System.Convert.DBNull;
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            public bool IsTypNull() {
+                return this.IsNull(this.tableFAKTURA_DETAILS2.TypColumn);
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            public void SetTypNull() {
+                this[this.tableFAKTURA_DETAILS2.TypColumn] = global::System.Convert.DBNull;
             }
         }
@@ -12085,4 +12123,5 @@
             tableMapping.ColumnMappings.Add("ROK", "ROK");
             tableMapping.ColumnMappings.Add("ReklamaId", "ReklamaId");
+            tableMapping.ColumnMappings.Add("Typ", "Typ");
             this._adapter.TableMappings.Add(tableMapping);
         }
@@ -12101,9 +12140,9 @@
             this._commandCollection[0].CommandText = @"SELECT     FAKTURA_DETAILS.JM, SUM(FAKTURA_DETAILS.ILOSC) AS ILOSC, SUM(FAKTURA_DETAILS.NETTO) AS NETTO, FAKTURA_DETAILS.S_VAT, 
                       SUM(FAKTURA_DETAILS.BRUTTO) AS BRUTTO, SUM(FAKTURA_DETAILS.VAT) AS VAT, [LISTA TYTUŁÓW].SYMB, FAKTURA_DETAILS.NR_WYDANIA, 
-                      FAKTURA_DETAILS.NAZWA_USLUGI, FAKTURA_DETAILS.MIESIAC, FAKTURA_DETAILS.ROK, FAKTURA_DETAILS.ReklamaId
+                      FAKTURA_DETAILS.NAZWA_USLUGI, FAKTURA_DETAILS.MIESIAC, FAKTURA_DETAILS.ROK, FAKTURA_DETAILS.ReklamaId, FAKTURA_DETAILS.Typ
 FROM         FAKTURA_DETAILS LEFT OUTER JOIN
                       [LISTA TYTUŁÓW] ON FAKTURA_DETAILS.TYTUL = [LISTA TYTUŁÓW ].id
 GROUP BY FAKTURA_DETAILS.JM, FAKTURA_DETAILS.S_VAT, FAKTURA_DETAILS.ID_FAKTURY, [LISTA TYTUŁÓW].SYMB, FAKTURA_DETAILS.NR_WYDANIA, 
-                      FAKTURA_DETAILS.NAZWA_USLUGI, FAKTURA_DETAILS.MIESIAC, FAKTURA_DETAILS.ROK, FAKTURA_DETAILS.ReklamaId
+                      FAKTURA_DETAILS.NAZWA_USLUGI, FAKTURA_DETAILS.MIESIAC, FAKTURA_DETAILS.ROK, FAKTURA_DETAILS.ReklamaId,  FAKTURA_DETAILS.Typ
 HAVING      (FAKTURA_DETAILS.ID_FAKTURY = @idFaktury)";
             this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
Index: branches/Abonament/BazaReklam/SubscriptionForm.cs
===================================================================
--- branches/Abonament/BazaReklam/SubscriptionForm.cs (revision 703)
+++ branches/Abonament/BazaReklam/SubscriptionForm.cs (revision 706)
@@ -41,5 +41,5 @@
 
 
-        [Obsolete("This is a deprecated method - use ComboBoxHelper after merge from ReklamaReorganizacja branch")]
+        [Obsolete("Use ComboBoxHelper after merge from ReklamaReorganizacja branch")]
         static void BindComboBox<T>(IEnumerable<T> list, ComboBox comboBox)
         {
@@ -59,5 +59,5 @@
             cbSubscriptionType.ValueMember = "Id";
 
-            cbSubscriptionType.Items.Insert(0, new SubscriptionType(0, "-- proszê wybraæ --", 0, 0));
+            cbSubscriptionType.Items.Insert(0, new SubscriptionType(0, 0, "-- proszê wybraæ --", 0, 0));
             cbSubscriptionType.SelectedIndex = 0;
 
@@ -133,11 +133,16 @@
             subscription.Guid = Guid.NewGuid();
             subscription.SubscriptionTypeId = CurrentSubscriptionType.Id;
+            subscription.TitleId = CurrentSubscriptionType.TitleId;
             subscription.SubscriptionItems = (int)numSubscriptionCount.Value;
 
             subscription.BasePrice = cbCurrency.SelectedItem.ToString() == "PLN"
-                                         ? Decimal.Parse(txtPricePln.Text)
-                                         : Decimal.Parse(txtPriceEur.Text);
+                                          ? Decimal.Parse(txtPricePln.Text)
+                                          : Decimal.Parse(txtPriceEur.Text);
             
             subscription.Discount = numDiscount.Value / 100;
+
+            subscription.Vat = subscription.Currency == "PLN" 
+                                          ? (decimal) VatHelper.PL22 
+                                          : (decimal) VatHelper.EU00;
 
             subscription.TotalPrice = cbCurrency.SelectedItem.ToString() == "PLN"
@@ -160,14 +165,6 @@
                 subscriptionDetail.PricePln = Decimal.Parse(txtPricePln.Text) * (1 - subscription.Discount);
 
-                if (subscription.Currency == "PLN")
-                {
-                    subscriptionDetail.Vat = (decimal)VatHelper.PL22;
-                }
-                else
-                {
-                    subscriptionDetail.Vat = (decimal)VatHelper.EU00;
-                }
-                    
-                
+                subscriptionDetail.Vat = subscription.Vat;
+
                 subscription.AddSubscriptionDetail(subscriptionDetail);
             }
Index: branches/Abonament/BazaReklam/Raporty/fakturaReversed2.rdlc
===================================================================
--- branches/Abonament/BazaReklam/Raporty/fakturaReversed2.rdlc (revision 626)
+++ branches/Abonament/BazaReklam/Raporty/fakturaReversed2.rdlc (revision 706)
@@ -23,4 +23,11 @@
     <DataSource Name="DummyDataSource">
       <rd:DataSourceID>b25f001f-b804-47d3-a2d8-ca8b4ba825f1</rd:DataSourceID>
+      <ConnectionProperties>
+        <DataProvider>SQL</DataProvider>
+        <ConnectString />
+      </ConnectionProperties>
+    </DataSource>
+    <DataSource Name="Baza_ReklamConnectionString">
+      <rd:DataSourceID>d3e5e4aa-8578-4f3e-bf07-918b6c4eec29</rd:DataSourceID>
       <ConnectionProperties>
         <DataProvider>SQL</DataProvider>
@@ -1047,4 +1054,8 @@
           <rd:TypeName>System.Int16</rd:TypeName>
         </Field>
+        <Field Name="Typ">
+          <DataField>TYP</DataField>
+          <rd:TypeName>System.Int32</rd:TypeName>
+        </Field>
       </Fields>
       <Query>
@@ -1511,4 +1522,403 @@
     <ColumnSpacing>1cm</ColumnSpacing>
     <ReportItems>
+      <Table Name="table4">
+        <ZIndex>5</ZIndex>
+        <DataSetName>FakturaDetails2</DataSetName>
+        <Visibility>
+          <Hidden>=CountDistinct(Fields!Typ.Value=1)&lt;=0</Hidden>
+        </Visibility>
+        <KeepTogether>true</KeepTogether>
+        <Filters>
+          <Filter>
+            <FilterExpression>=CStr(Fields!Typ.Value)</FilterExpression>
+            <Operator>Equal</Operator>
+            <FilterValues>
+              <FilterValue>1</FilterValue>
+            </FilterValues>
+          </Filter>
+        </Filters>
+        <Top>21.5873cm</Top>
+        <TableGroups>
+          <TableGroup>
+            <Grouping Name="table4_Group1">
+              <GroupExpressions>
+                <GroupExpression>=Split(Fields!NAZWA_USLUGI.Value,"|").GetValue(0)</GroupExpression>
+              </GroupExpressions>
+            </Grouping>
+            <Header>
+              <TableRows>
+                <TableRow>
+                  <TableCells>
+                    <TableCell>
+                      <ColSpan>3</ColSpan>
+                      <ReportItems>
+                        <Textbox Name="textbox107">
+                          <Style>
+                            <BackgroundColor>WhiteSmoke</BackgroundColor>
+                            <BorderColor>
+                              <Default>LightGrey</Default>
+                            </BorderColor>
+                            <BorderStyle>
+                              <Left>Solid</Left>
+                              <Right>Solid</Right>
+                              <Top>Solid</Top>
+                              <Bottom>Solid</Bottom>
+                            </BorderStyle>
+                            <BorderWidth>
+                              <Default>0.5pt</Default>
+                            </BorderWidth>
+                            <FontSize>8pt</FontSize>
+                            <FontWeight>700</FontWeight>
+                            <TextAlign>Center</TextAlign>
+                            <PaddingLeft>2pt</PaddingLeft>
+                            <PaddingRight>2pt</PaddingRight>
+                            <PaddingTop>2pt</PaddingTop>
+                            <PaddingBottom>2pt</PaddingBottom>
+                          </Style>
+                          <ZIndex>9</ZIndex>
+                          <CanGrow>true</CanGrow>
+                          <Value>=Split(Fields!NAZWA_USLUGI.Value,"|").GetValue(0)</Value>
+                        </Textbox>
+                      </ReportItems>
+                    </TableCell>
+                    <TableCell>
+                      <ReportItems>
+                        <Textbox Name="textbox108">
+                          <Style>
+                            <BackgroundColor>WhiteSmoke</BackgroundColor>
+                            <BorderColor>
+                              <Default>LightGrey</Default>
+                            </BorderColor>
+                            <BorderStyle>
+                              <Left>Solid</Left>
+                              <Right>Solid</Right>
+                              <Top>Solid</Top>
+                              <Bottom>Solid</Bottom>
+                            </BorderStyle>
+                            <BorderWidth>
+                              <Default>0.5pt</Default>
+                            </BorderWidth>
+                            <FontSize>8pt</FontSize>
+                            <FontWeight>700</FontWeight>
+                            <TextAlign>Center</TextAlign>
+                            <PaddingLeft>2pt</PaddingLeft>
+                            <PaddingRight>2pt</PaddingRight>
+                            <PaddingTop>2pt</PaddingTop>
+                            <PaddingBottom>2pt</PaddingBottom>
+                          </Style>
+                          <ZIndex>8</ZIndex>
+                          <CanGrow>true</CanGrow>
+                          <Value>=First(Fields!FAKTURY_DRUK_DETAILS_INTERNATIONALlabel_miesiac.Value, "tlumaczenia")</Value>
+                        </Textbox>
+                      </ReportItems>
+                    </TableCell>
+                  </TableCells>
+                  <Height>0.50794cm</Height>
+                </TableRow>
+                <TableRow>
+                  <TableCells>
+                    <TableCell>
+                      <ReportItems>
+                        <Textbox Name="textbox110">
+                          <Style>
+                            <BackgroundColor>WhiteSmoke</BackgroundColor>
+                            <BorderColor>
+                              <Default>LightGrey</Default>
+                            </BorderColor>
+                            <BorderStyle>
+                              <Left>Solid</Left>
+                              <Right>Solid</Right>
+                              <Top>Solid</Top>
+                              <Bottom>Solid</Bottom>
+                            </BorderStyle>
+                            <BorderWidth>
+                              <Default>0.5pt</Default>
+                            </BorderWidth>
+                            <FontSize>8pt</FontSize>
+                            <FontWeight>700</FontWeight>
+                            <TextAlign>Center</TextAlign>
+                            <PaddingLeft>2pt</PaddingLeft>
+                            <PaddingRight>2pt</PaddingRight>
+                            <PaddingTop>2pt</PaddingTop>
+                            <PaddingBottom>2pt</PaddingBottom>
+                          </Style>
+                          <ZIndex>7</ZIndex>
+                          <CanGrow>true</CanGrow>
+                          <Value>=iif(Fields!S_VAT.Value&lt;&gt;0,"Netto (PLN)","Netto (" + First(Fields!waluta_miano.Value, "Faktura") + ")")</Value>
+                        </Textbox>
+                      </ReportItems>
+                    </TableCell>
+                    <TableCell>
+                      <ReportItems>
+                        <Textbox Name="textbox111">
+                          <Style>
+                            <BackgroundColor>WhiteSmoke</BackgroundColor>
+                            <BorderColor>
+                              <Default>LightGrey</Default>
+                            </BorderColor>
+                            <BorderStyle>
+                              <Left>Solid</Left>
+                              <Right>Solid</Right>
+                              <Top>Solid</Top>
+                              <Bottom>Solid</Bottom>
+                            </BorderStyle>
+                            <BorderWidth>
+                              <Default>0.5pt</Default>
+                            </BorderWidth>
+                            <FontSize>8pt</FontSize>
+                            <FontWeight>700</FontWeight>
+                            <TextAlign>Center</TextAlign>
+                            <PaddingLeft>2pt</PaddingLeft>
+                            <PaddingRight>2pt</PaddingRight>
+                            <PaddingTop>2pt</PaddingTop>
+                            <PaddingBottom>2pt</PaddingBottom>
+                          </Style>
+                          <ZIndex>6</ZIndex>
+                          <CanGrow>true</CanGrow>
+                          <Value>=iif(Fields!S_VAT.Value&lt;&gt;0,"VAT (PLN)","VAT (" + First(Fields!waluta_miano.Value, "Faktura") + ")")</Value>
+                        </Textbox>
+                      </ReportItems>
+                    </TableCell>
+                    <TableCell>
+                      <ReportItems>
+                        <Textbox Name="textbox112">
+                          <Style>
+                            <BackgroundColor>WhiteSmoke</BackgroundColor>
+                            <BorderColor>
+                              <Default>LightGrey</Default>
+                            </BorderColor>
+                            <BorderStyle>
+                              <Left>Solid</Left>
+                              <Right>Solid</Right>
+                              <Top>Solid</Top>
+                              <Bottom>Solid</Bottom>
+                            </BorderStyle>
+                            <BorderWidth>
+                              <Default>0.5pt</Default>
+                            </BorderWidth>
+                            <FontSize>8pt</FontSize>
+                            <FontWeight>700</FontWeight>
+                            <TextAlign>Center</TextAlign>
+                            <PaddingLeft>2pt</PaddingLeft>
+                            <PaddingRight>2pt</PaddingRight>
+                            <PaddingTop>2pt</PaddingTop>
+                            <PaddingBottom>2pt</PaddingBottom>
+                          </Style>
+                          <ZIndex>5</ZIndex>
+                          <CanGrow>true</CanGrow>
+                          <Value>=iif(Fields!S_VAT.Value&lt;&gt;0,"Brutto (PLN)","Brutto (" + First(Fields!waluta_miano.Value, "Faktura") + ")")</Value>
+                        </Textbox>
+                      </ReportItems>
+                    </TableCell>
+                    <TableCell>
+                      <ReportItems>
+                        <Textbox Name="textbox113">
+                          <Style>
+                            <BackgroundColor>WhiteSmoke</BackgroundColor>
+                            <BorderColor>
+                              <Default>LightGrey</Default>
+                            </BorderColor>
+                            <BorderStyle>
+                              <Left>Solid</Left>
+                              <Right>Solid</Right>
+                              <Top>Solid</Top>
+                              <Bottom>Solid</Bottom>
+                            </BorderStyle>
+                            <BorderWidth>
+                              <Default>0.5pt</Default>
+                            </BorderWidth>
+                            <FontSize>8pt</FontSize>
+                            <FontWeight>700</FontWeight>
+                            <TextAlign>Center</TextAlign>
+                            <PaddingLeft>2pt</PaddingLeft>
+                            <PaddingRight>2pt</PaddingRight>
+                            <PaddingTop>2pt</PaddingTop>
+                            <PaddingBottom>2pt</PaddingBottom>
+                          </Style>
+                          <ZIndex>4</ZIndex>
+                          <CanGrow>true</CanGrow>
+                          <Value />
+                        </Textbox>
+                      </ReportItems>
+                    </TableCell>
+                  </TableCells>
+                  <Height>0.63492cm</Height>
+                </TableRow>
+              </TableRows>
+            </Header>
+          </TableGroup>
+        </TableGroups>
+        <Width>7.25cm</Width>
+        <Details>
+          <TableRows>
+            <TableRow>
+              <TableCells>
+                <TableCell>
+                  <ReportItems>
+                    <Textbox Name="textbox115">
+                      <Style>
+                        <BorderColor>
+                          <Default>LightGrey</Default>
+                        </BorderColor>
+                        <BorderStyle>
+                          <Left>Solid</Left>
+                          <Right>None</Right>
+                          <Top>Solid</Top>
+                          <Bottom>Solid</Bottom>
+                        </BorderStyle>
+                        <BorderWidth>
+                          <Default>0.5pt</Default>
+                        </BorderWidth>
+                        <FontSize>8pt</FontSize>
+                        <Format>N</Format>
+                        <TextAlign>Center</TextAlign>
+                        <PaddingLeft>2pt</PaddingLeft>
+                        <PaddingRight>2pt</PaddingRight>
+                        <PaddingTop>2pt</PaddingTop>
+                        <PaddingBottom>2pt</PaddingBottom>
+                      </Style>
+                      <ZIndex>3</ZIndex>
+                      <CanGrow>true</CanGrow>
+                      <Value>=IIf(Fields!S_VAT.Value&gt;0,Fields!NETTO.Value,Fields!NETTO.Value/Parameters!kursWaluty.Value)</Value>
+                    </Textbox>
+                  </ReportItems>
+                </TableCell>
+                <TableCell>
+                  <ReportItems>
+                    <Textbox Name="textbox116">
+                      <Style>
+                        <BorderColor>
+                          <Default>LightGrey</Default>
+                        </BorderColor>
+                        <BorderStyle>
+                          <Left>Solid</Left>
+                          <Right>None</Right>
+                          <Top>Solid</Top>
+                          <Bottom>Solid</Bottom>
+                        </BorderStyle>
+                        <BorderWidth>
+                          <Default>0.5pt</Default>
+                        </BorderWidth>
+                        <FontSize>8pt</FontSize>
+                        <Format>N</Format>
+                        <TextAlign>Center</TextAlign>
+                        <PaddingLeft>2pt</PaddingLeft>
+                        <PaddingRight>2pt</PaddingRight>
+                        <PaddingTop>2pt</PaddingTop>
+                        <PaddingBottom>2pt</PaddingBottom>
+                      </Style>
+                      <ZIndex>2</ZIndex>
+                      <CanGrow>true</CanGrow>
+                      <Value>=Fields!S_VAT.Value * Fields!NETTO.Value</Value>
+                    </Textbox>
+                  </ReportItems>
+                </TableCell>
+                <TableCell>
+                  <ReportItems>
+                    <Textbox Name="textbox117">
+                      <Style>
+                        <BorderColor>
+                          <Default>LightGrey</Default>
+                        </BorderColor>
+                        <BorderStyle>
+                          <Left>Solid</Left>
+                          <Right>None</Right>
+                          <Top>Solid</Top>
+                          <Bottom>Solid</Bottom>
+                        </BorderStyle>
+                        <BorderWidth>
+                          <Default>0.5pt</Default>
+                        </BorderWidth>
+                        <FontSize>8pt</FontSize>
+                        <Format>N</Format>
+                        <TextAlign>Center</TextAlign>
+                        <PaddingLeft>2pt</PaddingLeft>
+                        <PaddingRight>2pt</PaddingRight>
+                        <PaddingTop>2pt</PaddingTop>
+                        <PaddingBottom>2pt</PaddingBottom>
+                      </Style>
+                      <ZIndex>1</ZIndex>
+                      <CanGrow>true</CanGrow>
+                      <Value>=iif(Fields!S_VAT.Value&lt;&gt;0,Fields!NETTO.Value * (1 + Fields!S_VAT.Value),Fields!NETTO.Value/Parameters!kursWaluty.Value)</Value>
+                    </Textbox>
+                  </ReportItems>
+                </TableCell>
+                <TableCell>
+                  <ReportItems>
+                    <Textbox Name="textbox118">
+                      <Style>
+                        <BorderColor>
+                          <Default>LightGrey</Default>
+                        </BorderColor>
+                        <BorderStyle>
+                          <Left>Solid</Left>
+                          <Right>None</Right>
+                          <Top>Solid</Top>
+                          <Bottom>Solid</Bottom>
+                        </BorderStyle>
+                        <BorderWidth>
+                          <Default>0.5pt</Default>
+                        </BorderWidth>
+                        <FontSize>8pt</FontSize>
+                        <TextAlign>Center</TextAlign>
+                        <PaddingLeft>2pt</PaddingLeft>
+                        <PaddingRight>2pt</PaddingRight>
+                        <PaddingTop>2pt</PaddingTop>
+                        <PaddingBottom>2pt</PaddingBottom>
+                      </Style>
+                      <CanGrow>true</CanGrow>
+                      <Value>=Fields!MIESIAC.Value &amp;"/" &amp; Fields!ROK.Value</Value>
+                    </Textbox>
+                  </ReportItems>
+                </TableCell>
+              </TableCells>
+              <Height>0.50794cm</Height>
+            </TableRow>
+          </TableRows>
+        </Details>
+        <Header>
+          <TableRows>
+            <TableRow>
+              <TableCells>
+                <TableCell>
+                  <ColSpan>4</ColSpan>
+                  <ReportItems>
+                    <Textbox Name="textbox120">
+                      <Style>
+                        <FontWeight>700</FontWeight>
+                        <TextAlign>Center</TextAlign>
+                        <VerticalAlign>Middle</VerticalAlign>
+                        <PaddingLeft>2pt</PaddingLeft>
+                        <PaddingRight>2pt</PaddingRight>
+                        <PaddingTop>2pt</PaddingTop>
+                        <PaddingBottom>2pt</PaddingBottom>
+                      </Style>
+                      <ZIndex>10</ZIndex>
+                      <CanGrow>true</CanGrow>
+                      <Value>="Specyfikacja abonamentÃ³w do faktury" &amp; " " &amp; First(Fields!NUMER.Value, "Faktura") &amp; "/" &amp; First(Fields!NUMER_ROZ.Value, "Faktura") &amp; "/" &amp; First(Fields!NUMER_ROK.Value, "Faktura")</Value>
+                    </Textbox>
+                  </ReportItems>
+                </TableCell>
+              </TableCells>
+              <Height>0.63492cm</Height>
+            </TableRow>
+          </TableRows>
+        </Header>
+        <TableColumns>
+          <TableColumn>
+            <Width>2cm</Width>
+          </TableColumn>
+          <TableColumn>
+            <Width>1.75cm</Width>
+          </TableColumn>
+          <TableColumn>
+            <Width>2cm</Width>
+          </TableColumn>
+          <TableColumn>
+            <Width>1.5cm</Width>
+          </TableColumn>
+        </TableColumns>
+        <Left>11.55556cm</Left>
+      </Table>
       <Rectangle Name="rectangle4">
         <Left>0.12698cm</Left>
@@ -1724,4 +2134,5 @@
                   <GroupExpressions>
                     <GroupExpression>=Fields!SYMB.Value</GroupExpression>
+                    <GroupExpression>=Fields!Typ.Value</GroupExpression>
                   </GroupExpressions>
                 </Grouping>
@@ -1753,5 +2164,5 @@
                               <ZIndex>7</ZIndex>
                               <CanGrow>true</CanGrow>
-                              <Value>=RunningValue(Fields!SYMB.Value, CountDistinct, nothing)</Value>
+                              <Value>=RunningValue(CStr(Fields!Typ.Value) + "_" + Fields!SYMB.Value, CountDistinct, nothing)</Value>
                             </Textbox>
                           </ReportItems>
@@ -1780,5 +2191,5 @@
                               <ZIndex>6</ZIndex>
                               <CanGrow>true</CanGrow>
-                              <Value>="Reklama w" &amp; " " &amp; Fields!SYMB.Value</Value>
+                              <Value>=IIf(Fields!Typ.Value=1, "Abonament w ", "Reklama w ") + Fields!SYMB.Value</Value>
                             </Textbox>
                           </ReportItems>
@@ -4705,4 +5116,13 @@
         <PageBreakAtStart>true</PageBreakAtStart>
         <KeepTogether>true</KeepTogether>
+        <Filters>
+          <Filter>
+            <FilterExpression>=CStr(Fields!Typ.Value)</FilterExpression>
+            <Operator>Equal</Operator>
+            <FilterValues>
+              <FilterValue>2</FilterValue>
+            </FilterValues>
+          </Filter>
+        </Filters>
         <Top>21.5873cm</Top>
         <TableGroups>
