polish
parent
4d2251af0f
commit
dd2f5440af
|
|
@ -1,6 +1,5 @@
|
|||
package backend;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class Produkt {
|
||||
public int id;
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public class Warenkorb {
|
|||
public int NettoVersandkosten(){
|
||||
int ret = 0;
|
||||
for(int i = 0; i < this.inhalt.size(); i++) {
|
||||
ret += BruttoVersandkosten()-(((this.inhalt.get(i).netto*this.anzahl.get(i))/NettoPreis())*BruttoVersandkosten())/(1+this.inhalt.get(i).mwStSatz);
|
||||
ret += (((this.inhalt.get(i).netto*this.anzahl.get(i))/NettoPreis())*BruttoVersandkosten())/(1+((double)this.inhalt.get(i).mwStSatz/100));
|
||||
}
|
||||
return ret;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -153,9 +153,10 @@ public class ShopTUI {
|
|||
shop.UpdateKundeInWarenkorb(name, addr);
|
||||
};
|
||||
private static void Bestellen() {
|
||||
ShowWarenkorb();
|
||||
shop.AddBestellung();
|
||||
};
|
||||
private static void ShowBestellungen(){};
|
||||
private static void ShowBestellungen(){ };
|
||||
|
||||
|
||||
private static ArrayList<String> readFile(String path) throws FileNotFoundException {
|
||||
|
|
|
|||
Loading…
Reference in New Issue