@@ -32,18 +32,23 @@ public class Receipt extends AppCompatActivity {
...
@@ -32,18 +32,23 @@ public class Receipt extends AppCompatActivity {
priceofticket=intent.getIntExtra("price",0);
priceofticket=intent.getIntExtra("price",0);
price=intent.getIntExtra("fullprice",0);
price=intent.getIntExtra("fullprice",0);
//work out the change needed for the customer
intchange=value-price;
intchange=value-price;
//random number for their booking number
Stringbookingid=randombookingnumber();
Stringbookingid=randombookingnumber();
totalprices=findViewById(R.id.completereceipt);
totalprices=findViewById(R.id.completereceipt);
//print full integers and strings
totalprices.setText("\nMuseum: "+selectedMuseum+"\n\n"+"Date of Visit: "+selecteddate+"\n\n"+"Time Slot: "+time+"\n\n"+"Ticket Price: £"+priceofticket+"\n\n"+"Cafe Total Costs: £"+totalcafe+"\n\n"+"Souvenir Store Total Costs: £"+
totalprices.setText("\nMuseum: "+selectedMuseum+"\n\n"+"Date of Visit: "+selecteddate+"\n\n"+"Time Slot: "+time+"\n\n"+"Ticket Price: £"+priceofticket+"\n\n"+"Cafe Total Costs: £"+totalcafe+"\n\n"+"Souvenir Store Total Costs: £"+