Created
August 30, 2020 07:51
-
-
Save Krishna-Ravi/01c78097c5d5cde64add04a23595ff5c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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