Kaynağa Gözat

Poprawa dla zwrotów

waldek 3 yıl önce
ebeveyn
işleme
e137c30bea
1 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. 5
    1
      JPK_VDEK/Ogolne.xaml.cs

+ 5
- 1
JPK_VDEK/Ogolne.xaml.cs Dosyayı Görüntüle

@@ -1941,6 +1941,10 @@ namespace JPK_VDEK
1941 1941
                             {
1942 1942
                                 d1.P_51 = Math.Round(war, 0).ToString();
1943 1943
                             }
1944
+                            else
1945
+                            {
1946
+                                d1.P_51 = "0";
1947
+                            }
1944 1948
                             war = Convert.ToDecimal(atr[44].Replace('.', ',')); ;
1945 1949
                             if (war != 0)
1946 1950
                             {
@@ -2155,7 +2159,7 @@ namespace JPK_VDEK
2155 2159
 
2156 2160
                             spw.NrKontrahenta = atr[48];
2157 2161
 
2158
-                            if (!atr[50].Equals("PL"))
2162
+                            if (!atr[50].Equals("PL") && !atr[50].Equals(""))
2159 2163
                             {
2160 2164
                                 spw.KodKrajuNadaniaTIN = atr[50];
2161 2165
                             }