-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPharmacy.sol
30 lines (24 loc) · 944 Bytes
/
Pharmacy.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
pragma solidity 0.4.18 <= 0.6.12;
contract Pharmacy{
int bill_id;
string date;
string cust_Name;
string hospital_Name;
string cust_Addrs;
uint cust_contact_no;
uint quantity;
uint bill_amount;
function Pharmacy_Data(int id, string newDate, string newCustName, string newHospital, string newCustAddrs, uint newContact , uint newQuantity, uint newTotalBill) public {
bill_id = id;
date = newDate;
cust_Name = newCustName;
hospital_Name = newHospital;
cust_Addrs = newCustAddrs;
cust_contact_no = newContact;
quantity = newQuantity;
bill_amount = newTotalBill;
}
function getBill() public view returns(int, string, string, string, string, uint, uint, uint){
return(bill_id, date, cust_Name, hospital_Name, cust_Addrs, cust_contact_no, quantity, bill_amount);
}
}