Index: Baza Reklam 2 - Faktury/KorektyForm.Designer.cs
===================================================================
--- Baza Reklam 2 - Faktury/KorektyForm.Designer.cs (revision 96)
+++ Baza Reklam 2 - Faktury/KorektyForm.Designer.cs (revision 104)
@@ -42,4 +42,5 @@
             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
             this.bindingNavigator1 = new System.Windows.Forms.BindingNavigator(this.components);
             this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
@@ -78,9 +79,4 @@
             this.treeView1 = new System.Windows.Forms.TreeView();
             this.fakturyDataGridView = new System.Windows.Forms.DataGridView();
-            this.vIEWKOREKTYBindingSource = new System.Windows.Forms.BindingSource(this.components);
-            this.panel = new System.Windows.Forms.Panel();
-            this.bruttoTextBox = new System.Windows.Forms.TextBox();
-            this.zaplataTextBox = new System.Windows.Forms.TextBox();
-            this.vIEW_KOREKTYTableAdapter = new Baza_Reklam.REKLAMADataSetTableAdapters.VIEW_KOREKTYTableAdapter();
             this.agencja = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.agent = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -90,4 +86,5 @@
             this.nRFAKTURYDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.datawystawieniaFDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.NR_FAKTURY_KORYGOWANEJ_1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.roznicanettoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.roznicavatDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -95,4 +92,11 @@
             this.waluta_roznica_brutto = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.waluta_miano = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.vIEWKOREKTYBindingSource = new System.Windows.Forms.BindingSource(this.components);
+            this.panel = new System.Windows.Forms.Panel();
+            this.bruttoTextBox = new System.Windows.Forms.TextBox();
+            this.zaplataTextBox = new System.Windows.Forms.TextBox();
+            this.vIEW_KOREKTYTableAdapter = new Baza_Reklam.REKLAMADataSetTableAdapters.VIEW_KOREKTYTableAdapter();
+            this.toolStripLabel6 = new System.Windows.Forms.ToolStripLabel();
+            this.nrKorygowanejToolStripTextBox = new System.Windows.Forms.ToolStripTextBox();
             ((System.ComponentModel.ISupportInitialize)(this.bindingNavigator1)).BeginInit();
             this.bindingNavigator1.SuspendLayout();
@@ -304,4 +308,6 @@
             this.toolStripLabel1,
             this.nrFakturyToolStripTextBox,
+            this.toolStripLabel6,
+            this.nrKorygowanejToolStripTextBox,
             this.toolStripLabel2,
             this.kodRozliczeniowyToolStripTextBox,
@@ -323,11 +329,11 @@
             // 
             this.toolStripLabel1.Name = "toolStripLabel1";
-            this.toolStripLabel1.Size = new System.Drawing.Size(24, 22);
-            this.toolStripLabel1.Text = "nr: ";
+            this.toolStripLabel1.Size = new System.Drawing.Size(63, 22);
+            this.toolStripLabel1.Text = "nr korekty: ";
             // 
             // nrFakturyToolStripTextBox
             // 
             this.nrFakturyToolStripTextBox.Name = "nrFakturyToolStripTextBox";
-            this.nrFakturyToolStripTextBox.Size = new System.Drawing.Size(100, 25);
+            this.nrFakturyToolStripTextBox.Size = new System.Drawing.Size(40, 25);
             this.nrFakturyToolStripTextBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.kryteriumWyszukiwania_KeyPress);
             // 
@@ -455,4 +461,5 @@
             this.nRFAKTURYDataGridViewTextBoxColumn,
             this.datawystawieniaFDataGridViewTextBoxColumn,
+            this.NR_FAKTURY_KORYGOWANEJ_1,
             this.roznicanettoDataGridViewTextBoxColumn,
             this.roznicavatDataGridViewTextBoxColumn,
@@ -473,43 +480,4 @@
             this.fakturyDataGridView.DataBindingComplete += new System.Windows.Forms.DataGridViewBindingCompleteEventHandler(this.fakturyDataGridView_DataBindingComplete);
             // 
-            // vIEWKOREKTYBindingSource
-            // 
-            this.vIEWKOREKTYBindingSource.DataMember = "VIEW_KOREKTY";
-            this.vIEWKOREKTYBindingSource.DataSource = this.rEKLAMADataSet;
-            // 
-            // panel
-            // 
-            this.panel.Controls.Add(this.bruttoTextBox);
-            this.panel.Controls.Add(this.zaplataTextBox);
-            this.panel.Dock = System.Windows.Forms.DockStyle.Bottom;
-            this.panel.Location = new System.Drawing.Point(0, 630);
-            this.panel.Name = "panel";
-            this.panel.Size = new System.Drawing.Size(979, 34);
-            this.panel.TabIndex = 4;
-            // 
-            // bruttoTextBox
-            // 
-            this.bruttoTextBox.BackColor = System.Drawing.Color.White;
-            this.bruttoTextBox.Location = new System.Drawing.Point(710, 6);
-            this.bruttoTextBox.Name = "bruttoTextBox";
-            this.bruttoTextBox.ReadOnly = true;
-            this.bruttoTextBox.Size = new System.Drawing.Size(125, 20);
-            this.bruttoTextBox.TabIndex = 1;
-            this.bruttoTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
-            // 
-            // zaplataTextBox
-            // 
-            this.zaplataTextBox.BackColor = System.Drawing.Color.White;
-            this.zaplataTextBox.Location = new System.Drawing.Point(851, 6);
-            this.zaplataTextBox.Name = "zaplataTextBox";
-            this.zaplataTextBox.ReadOnly = true;
-            this.zaplataTextBox.Size = new System.Drawing.Size(116, 20);
-            this.zaplataTextBox.TabIndex = 0;
-            this.zaplataTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
-            // 
-            // vIEW_KOREKTYTableAdapter
-            // 
-            this.vIEW_KOREKTYTableAdapter.ClearBeforeFill = true;
-            // 
             // agencja
             // 
@@ -531,5 +499,5 @@
             this.kodKlienta.HeaderText = "Kod klienta";
             this.kodKlienta.Name = "kodKlienta";
-            this.kodKlienta.Width = 85;
+            this.kodKlienta.Width = 79;
             // 
             // nRFAKTURYKOREKTYDataGridViewTextBoxColumn
@@ -541,4 +509,5 @@
             this.nRFAKTURYKOREKTYDataGridViewTextBoxColumn.Name = "nRFAKTURYKOREKTYDataGridViewTextBoxColumn";
             this.nRFAKTURYKOREKTYDataGridViewTextBoxColumn.ReadOnly = true;
+            this.nRFAKTURYKOREKTYDataGridViewTextBoxColumn.Width = 92;
             // 
             // dATAWYSTAWIENIADataGridViewTextBoxColumn
@@ -558,8 +527,8 @@
             dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
             this.nRFAKTURYDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle5;
-            this.nRFAKTURYDataGridViewTextBoxColumn.HeaderText = "Nr FV";
+            this.nRFAKTURYDataGridViewTextBoxColumn.HeaderText = "Poprzednia korekta lub FV";
             this.nRFAKTURYDataGridViewTextBoxColumn.Name = "nRFAKTURYDataGridViewTextBoxColumn";
             this.nRFAKTURYDataGridViewTextBoxColumn.ReadOnly = true;
-            this.nRFAKTURYDataGridViewTextBoxColumn.Width = 55;
+            this.nRFAKTURYDataGridViewTextBoxColumn.Width = 116;
             // 
             // datawystawieniaFDataGridViewTextBoxColumn
@@ -570,14 +539,24 @@
             dataGridViewCellStyle6.Format = "d";
             this.datawystawieniaFDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle6;
-            this.datawystawieniaFDataGridViewTextBoxColumn.HeaderText = "Data wyst. FV";
+            this.datawystawieniaFDataGridViewTextBoxColumn.HeaderText = "Data wyst. pop. korekty/FV";
             this.datawystawieniaFDataGridViewTextBoxColumn.Name = "datawystawieniaFDataGridViewTextBoxColumn";
             this.datawystawieniaFDataGridViewTextBoxColumn.Width = 80;
             // 
+            // NR_FAKTURY_KORYGOWANEJ_1
+            // 
+            this.NR_FAKTURY_KORYGOWANEJ_1.DataPropertyName = "NR_FAKTURY_KORYGOWANEJ_1";
+            dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.NR_FAKTURY_KORYGOWANEJ_1.DefaultCellStyle = dataGridViewCellStyle7;
+            this.NR_FAKTURY_KORYGOWANEJ_1.HeaderText = "Faktura VAT";
+            this.NR_FAKTURY_KORYGOWANEJ_1.Name = "NR_FAKTURY_KORYGOWANEJ_1";
+            this.NR_FAKTURY_KORYGOWANEJ_1.ReadOnly = true;
+            this.NR_FAKTURY_KORYGOWANEJ_1.Width = 85;
+            // 
             // roznicanettoDataGridViewTextBoxColumn
             // 
             this.roznicanettoDataGridViewTextBoxColumn.DataPropertyName = "roznica_netto";
-            dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle7.Format = "C2";
-            this.roznicanettoDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle7;
+            dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle8.Format = "C2";
+            this.roznicanettoDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle8;
             this.roznicanettoDataGridViewTextBoxColumn.HeaderText = "Ró¿nica netto";
             this.roznicanettoDataGridViewTextBoxColumn.Name = "roznicanettoDataGridViewTextBoxColumn";
@@ -588,7 +567,7 @@
             // 
             this.roznicavatDataGridViewTextBoxColumn.DataPropertyName = "roznica_vat";
-            dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle8.Format = "C2";
-            this.roznicavatDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle8;
+            dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle9.Format = "C2";
+            this.roznicavatDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle9;
             this.roznicavatDataGridViewTextBoxColumn.HeaderText = "Ró¿nica VAT";
             this.roznicavatDataGridViewTextBoxColumn.Name = "roznicavatDataGridViewTextBoxColumn";
@@ -599,7 +578,7 @@
             // 
             this.roznicabruttoDataGridViewTextBoxColumn.DataPropertyName = "roznica_brutto";
-            dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle9.Format = "C2";
-            this.roznicabruttoDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle9;
+            dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle10.Format = "C2";
+            this.roznicabruttoDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle10;
             this.roznicabruttoDataGridViewTextBoxColumn.HeaderText = "Ró¿nica brutto";
             this.roznicabruttoDataGridViewTextBoxColumn.Name = "roznicabruttoDataGridViewTextBoxColumn";
@@ -610,6 +589,6 @@
             // 
             this.waluta_roznica_brutto.DataPropertyName = "waluta_roznica_brutto";
-            dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.waluta_roznica_brutto.DefaultCellStyle = dataGridViewCellStyle10;
+            dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.waluta_roznica_brutto.DefaultCellStyle = dataGridViewCellStyle11;
             this.waluta_roznica_brutto.HeaderText = "Ró¿nica w walucie";
             this.waluta_roznica_brutto.Name = "waluta_roznica_brutto";
@@ -621,9 +600,59 @@
             this.waluta_miano.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
             this.waluta_miano.DataPropertyName = "waluta_miano";
-            dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.waluta_miano.DefaultCellStyle = dataGridViewCellStyle11;
+            dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.waluta_miano.DefaultCellStyle = dataGridViewCellStyle12;
             this.waluta_miano.HeaderText = "Waluta";
             this.waluta_miano.Name = "waluta_miano";
             this.waluta_miano.Width = 60;
+            // 
+            // vIEWKOREKTYBindingSource
+            // 
+            this.vIEWKOREKTYBindingSource.DataMember = "VIEW_KOREKTY";
+            this.vIEWKOREKTYBindingSource.DataSource = this.rEKLAMADataSet;
+            // 
+            // panel
+            // 
+            this.panel.Controls.Add(this.bruttoTextBox);
+            this.panel.Controls.Add(this.zaplataTextBox);
+            this.panel.Dock = System.Windows.Forms.DockStyle.Bottom;
+            this.panel.Location = new System.Drawing.Point(0, 630);
+            this.panel.Name = "panel";
+            this.panel.Size = new System.Drawing.Size(979, 34);
+            this.panel.TabIndex = 4;
+            // 
+            // bruttoTextBox
+            // 
+            this.bruttoTextBox.BackColor = System.Drawing.Color.White;
+            this.bruttoTextBox.Location = new System.Drawing.Point(710, 6);
+            this.bruttoTextBox.Name = "bruttoTextBox";
+            this.bruttoTextBox.ReadOnly = true;
+            this.bruttoTextBox.Size = new System.Drawing.Size(125, 20);
+            this.bruttoTextBox.TabIndex = 1;
+            this.bruttoTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
+            // 
+            // zaplataTextBox
+            // 
+            this.zaplataTextBox.BackColor = System.Drawing.Color.White;
+            this.zaplataTextBox.Location = new System.Drawing.Point(851, 6);
+            this.zaplataTextBox.Name = "zaplataTextBox";
+            this.zaplataTextBox.ReadOnly = true;
+            this.zaplataTextBox.Size = new System.Drawing.Size(116, 20);
+            this.zaplataTextBox.TabIndex = 0;
+            this.zaplataTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
+            // 
+            // vIEW_KOREKTYTableAdapter
+            // 
+            this.vIEW_KOREKTYTableAdapter.ClearBeforeFill = true;
+            // 
+            // toolStripLabel6
+            // 
+            this.toolStripLabel6.Name = "toolStripLabel6";
+            this.toolStripLabel6.Size = new System.Drawing.Size(104, 22);
+            this.toolStripLabel6.Text = "nr korygowanej FV: ";
+            // 
+            // nrKorygowanejToolStripTextBox
+            // 
+            this.nrKorygowanejToolStripTextBox.Name = "nrKorygowanejToolStripTextBox";
+            this.nrKorygowanejToolStripTextBox.Size = new System.Drawing.Size(40, 25);
             // 
             // KorektyForm
@@ -710,4 +739,5 @@
         private System.Windows.Forms.DataGridViewTextBoxColumn nRFAKTURYDataGridViewTextBoxColumn;
         private System.Windows.Forms.DataGridViewTextBoxColumn datawystawieniaFDataGridViewTextBoxColumn;
+        private System.Windows.Forms.DataGridViewTextBoxColumn NR_FAKTURY_KORYGOWANEJ_1;
         private System.Windows.Forms.DataGridViewTextBoxColumn roznicanettoDataGridViewTextBoxColumn;
         private System.Windows.Forms.DataGridViewTextBoxColumn roznicavatDataGridViewTextBoxColumn;
@@ -715,4 +745,6 @@
         private System.Windows.Forms.DataGridViewTextBoxColumn waluta_roznica_brutto;
         private System.Windows.Forms.DataGridViewTextBoxColumn waluta_miano;
+        private System.Windows.Forms.ToolStripLabel toolStripLabel6;
+        private System.Windows.Forms.ToolStripTextBox nrKorygowanejToolStripTextBox;
 
     }
