- Data:
- 2009-12-08 10:09:39 (16 years ago)
- Lokalizacja:
- branches/Emisje
- Pliki:
-
- 2 zmodyfikowane
-
. (zmodyfikowane) (1 prop)
-
eCard/eCardMVC/Platnosci/Models/FunkcjePlatnosci.cs (zmodyfikowane) (3 diffs)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
branches/Emisje
- Property svn:mergeinfo
-
old new 3 3 /branches/ReklamaReorganizacja:568-731 4 4 /tags/BazaReklam_1.1.28:831 5 /trunk:774-893 5 /trunk:774-893,896-936
-
- Property svn:mergeinfo
-
branches/Emisje/eCard/eCardMVC/Platnosci/Models/FunkcjePlatnosci.cs
r895 r939 23 23 { 24 24 string brutto = String.Format("{0:0.00}", kwota.ToString().Replace(",", ".")) + " PLN "; 25 if (waluta > 0 && miano != "")25 if (waluta > 0 && (miano != "" || miano != "PLN")) 26 26 { 27 27 brutto += "(" + (waluta.ToString()).Replace(",", ".") + " " + miano + ")"; … … 38 38 } 39 39 public Waluta setAmount(vPlatnosciEcard platnosc){ 40 40 41 Waluta waluta = new Waluta(); 42 waluta.Amount = Convert.ToInt32(platnosc.Brutto * 100); 43 41 44 if (String.IsNullOrEmpty(platnosc.waluta_miano) || platnosc.waluta_miano == "PLN") 42 { 43 waluta.Amount = Convert.ToInt32(platnosc.Brutto * 100); 45 { 44 46 waluta.Currency = PLN; 45 47 } 46 48 else 47 49 { 48 waluta.Amount = Convert.ToInt32(platnosc.waluta_brutto * 100); 49 if (platnosc.waluta_miano == "EUR") 50 if (platnosc.waluta_miano == "EUR") 50 51 { 51 52 waluta.Currency = EUR; … … 97 98 Thread.CurrentPrincipal = new GenericPrincipal(new GenericIdentity(User, ""), null); 98 99 } 99 public ErrorViewData InitErrorViewData(string errortxt )100 public ErrorViewData InitErrorViewData(string errortxt, int idFaktury) 100 101 { 101 102 ErrorViewData er = new ErrorViewData(); 102 er.error = errortxt; 103 er.Error = errortxt; 104 er.InvoiceId = idFaktury; 103 105 return er; 104 106 }
