Skip to content

Instantly share code, notes, and snippets.

@Krishna-Ravi
Created August 30, 2020 07:51
Show Gist options
  • Save Krishna-Ravi/01c78097c5d5cde64add04a23595ff5c to your computer and use it in GitHub Desktop.
Save Krishna-Ravi/01c78097c5d5cde64add04a23595ff5c to your computer and use it in GitHub Desktop.
pragma solidity 0.4.18 <= 0.6.12;
contract RestarauntBill{
string customerName;
string itemName;
int rate;
int total;
int quantity;
string date;
function RestarauntBill(string newcustomerName, string newitemName, int newrate,
int newtotal, int newquantity, string newdate) public {
customerName = newcustomerName;
itemName = newitemName;
rate = newrate;
total = newtotal;
quantity = newquantity;
date = newdate;
}
function getRestarauntBill() public view returns(string,string,int,int,int,string) {
return(customerName, itemName, rate, total, quantity,date);
}
function setRestarauntBill(string newitemName, int newrate, int newtotal,int newquantity) public{
itemName= newitemName;
rate = newrate;
total = newtotal;
quantity = newquantity;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment