PageSourceSearch

https://rentok.com/_next/static/chunks/pages/receipt-generator-d8230a9119ee5b99.js

js rentok.com collected 2026-09-24 13:22:49 UTC 16,477 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4ad17665-ddfc-4a5d-a836-294b1cedd364",e._sentryDebugIdIdentifier="sentry-dbid-4ad17665-ddfc-4a5d-a836-294b1cedd364")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8933],{61442:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/receipt-generator",function(){return t(17387)}])},17387:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return RentReceiptGenerator}});var r=t(82729),s=t(85893),a=t(9008),i=t.n(a),o=t(67294),l=t(22569),d=t(68029),c=t(12553),m=t(73636),p=t(90092),h=t(8186),x=t(50232),u=t(6459),g=t(31046),j=t(96254),f=t(88329),b=t(3712),y=t(54506),w=t(30980),C=t(82206),I=t(73244),R=t(16610),N=t(59099),A=t(42845),S=t(65243),F=t(38491),k=t(64831),v=t(70917),D=t(30381),T=t.n(D),P=t(57632),_=t(89583),G=t(61120),M=t.n(G),E=t(30832),Y=t(29688),z=t(24350);function _templateObject(){let e=(0,r._)(["\n        0% { transform: scale(1); }\n        50% { transform: scale(1.05); }\n        100% { transform: scale(1); }\n    "]);return _templateObject=function(){return e},e}let W={primary:"#FF4D00",secondary:"#FF8533",success:"#00CC99"},q=["Cash","UPI","Bank Transfer","Cheque","Credit Card","Debit Card","Other"],LeadMagnetSidebar=e=>{let{onOpen:n,seoSlugCity:t}=e,[r,a]=(0,o.useState)(!1),[i,u]=(0,o.useState)(!1),g=(0,v.F4)(_templateObject());return((0,o.useEffect)(()=>{let e=setTimeout(()=>{a(!0)},3e3);return()=>clearTimeout(e)},[]),i)?null:(0,s.jsx)(l.M,{in:r,initialScale:.9,children:(0,s.jsx)(d.x,{position:"fixed",right:"20px",top:"75%",transform:"translateY(-50%)",zIndex:9,maxW:"280px",display:r?"block":"none",transition:"all 0.3s ease",children:(0,s.jsxs)(d.x,{bg:"white",borderRadius:"lg",overflow:"hidden",boxShadow:"0 4px 20px rgba(0,0,0,0.15)",border:"1px solid",borderColor:"gray.100",position:"relative",children:[(0,s.jsx)(d.x,{position:"absolute",top:"8px",right:"8px",cursor:"pointer",zIndex:2,onClick:()=>{u(!0)},children:(0,s.jsx)(c.J,{as:_.FaTimes,w:3,h:3,color:"gray.500"})}),(0,s.jsx)(d.x,{bgGradient:"linear(to-r, ".concat(W.primary,", ").concat(W.secondary,")"),py:3,px:4,children:(0,s.jsxs)(m.U,{spacing:2,children:[(0,s.jsx)(c.J,{as:_.FaCrown,w:5,h:5,color:"white"}),(0,s.jsx)(p.x,{fontWeight:"bold",color:"white",fontSize:"sm",children:"SPECIAL OFFER"})]})}),(0,s.jsxs)(h.g,{p:4,spacing:4,align:"start",children:[(0,s.jsx)(x.X,{size:"md",lineHeight:"1.3",children:"Get 1 Month FREE RentOk Subscription"}),(0,s.jsxs)(m.U,{spacing:1,children:[(0,s.jsx)(c.J,{as:_.FaCheckCircle,color:W.success}),(0,s.jsx)(p.x,{fontSize:"sm",children:"Full access to all features"})]}),(0,s.jsxs)(m.U,{spacing:1,children:[(0,s.jsx)(c.J,{as:_.FaCheckCircle,color:W.success}),(0,s.jsx)(p.x,{fontSize:"sm",children:"No credit card required"})]}),(0,s.jsxs)(m.U,{spacing:1,children:[(0,s.jsx)(c.J,{as:_.FaCheckCircle,color:W.success}),(0,s.jsx)(p.x,{fontSize:"sm",children:"Cancel anytime"})]}),(0,s.jsx)(d.x,{as:"button",width:"100%",bg:W.primary,color:"white",py:3,px:4,borderRadius:"md",fontWeight:"bold",onClick:()=>{window.gtag&&window.gtag("event","lead_magnet_click",{event_category:"lead_generation",event_label:"Sidebar Lead Magnet - ".concat(t),value:1}),n()},_hover:{bg:W.secondary,transform:"translateY(-2px)",boxShadow:"lg"},transition:"all 0.2s",animation:"".concat(g," 2s infinite ease-in-out"),children:(0,s.jsxs)(m.U,{spacing:2,justify:"center",children:[(0,s.jsx)(c.J,{as:_.FaGift}),(0,s.jsx)(p.x,{children:"Claim Your Free Month"})]})}),(0,s.jsxs)(p.x,{fontSize:"xs",color:"gray.500",textAlign:"center",w:"100%",children:["Limited time offer for ",t," property owners"]})]})]})})})};function RentReceiptGenerator(){let e=(0,u.p)(),n=(0,o.useRef)(null),{colorMode:t,toggleColorMode:r}=(0,g.If)(),a=(0,g.ff)("white","gray.800"),l=(0,g.ff)("gray.800","white"),c=(0,g.ff)("gray.200","gray.600"),h=(0,g.ff)("gray.50","gray.900"),[v,D]=(0,o.useState)(!1),[G,W]=(0,o.useState)(""),[O,L]=(0,o.useState)(!1),[U,X]=(0,o.useState)({landlordName:"",tenantName:"",propertyAddress:"",rentAmount:"",paymentDate:T()().format("YYYY-MM-DD"),duration:{month:T()().format("MMMM"),year:T()().format("YYYY")},paymentMode:"UPI",receiptNumber:"RENT-".concat((0,P.Z)().substring(0,8).toUpperCase()),includeGst:!1,gstNumber:"",gstAmount:0});(0,o.useEffect)(()=>{U.includeGst&&U.rentAmount?X({...U,gstAmount:(.18*parseFloat(U.rentAmount)).toFixed(2)}):X({...U,gstAmount:0})},[U.includeGst,U.rentAmount]);let handleInputChange=e=>{let{name:n,value:t}=e.target;if(n.includes(".")){let[e,r]=n.split(".");X({...U,[e]:{...U[e],[r]:t}})}else X({...U,[n]:t})},handleFormSubmit=async n=>{if(n.preventDefault(),!U.landlordName||!U.tenantName||!U.propertyAddress||!U.rentAmount){e({title:"Required fields missing",description:"Please fill in all the required fields.",status:"error",duration:3e3,isClosable:!0});return}downloadReceipt()},downloadReceipt=async()=>{D(!0);try{let r=n.current,s=await M()(r,{scale:2,logging:!1,useCORS:!0,allowTaint:!0,backgroundColor:"light"===t?"#ffffff"
1:"#1A202C"}),a=s.toDataURL("image/png"),i=document.createElement("a");i.href=a,i.download="Rent-Receipt-".concat(U.tenantName.replace(/\s+/g,"-"),"-").concat(U.duration.month,"-").concat(U.duration.year,".png"),i.click(),e({title:"Success!",description:"Your receipt has been downloaded successfully.",status:"success",duration:3e3,isClosable:!0}),setTimeout(()=>L(!0),1e3)}catch(n){console.error("Error downloading receipt:",n),e({title:"Error",description:"Failed to download the receipt. Please try again.",status:"error",duration:3e3,isClosable:!0})}finally{D(!1)}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(i(),{children:[(0,s.jsx)("title",{children:"Free Rent Receipt Generator | Create & Download in Seconds"}),(0,s.jsx)("meta",{name:"description",content:"Generate professional rent receipts with our free online tool. Create, download and share rent receipts in seconds. Perfect for landlords and tenants."}),(0,s.jsx)("meta",{name:"keywords",content:"rent receipt format, download rent receipt, online rent receipt generator, rent receipt pdf, rent receipt template"}),(0,s.jsx)("meta",{property:"og:title",content:"Free Rent Receipt Generator | Create & Download in Seconds"}),(0,s.jsx)("meta",{property:"og:description",content:"Generate professional rent receipts instantly. Free tool for landlords and tenants."}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{property:"og:url",content:"https://rentok.com/receipt-generator"}),(0,s.jsx)("link",{rel:"canonical",href:"https://rentok.com/receipt-generator"}),(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{"@type":"Question",name:"Is a rent receipt mandatory?",acceptedAnswer:{"@type":"Answer",text:"Yes, rent receipts are mandatory for tax purposes if you are claiming HRA exemption in India. They serve as proof of rent payment."}},{"@type":"Question",name:"What details should be included in a rent receipt?",acceptedAnswer:{"@type":"Answer",text:"A valid rent receipt should include the landlord's name, tenant's name, property address, rent amount, payment period, date of payment, and payment mode. For HRA claims above ₹1 lakh per annum, the landlord's PAN is also required."}},{"@type":"Question",name:"Can I generate rent receipts online?",acceptedAnswer:{"@type":"Answer",text:"Yes, you can generate rent receipts online using our free Rent Receipt Generator tool. It allows you to create professional-looking receipts in seconds and download them as PDF files."}},{"@type":"Question",name:"Do I need to include GST in my rent receipt?",acceptedAnswer:{"@type":"Answer",text:"GST is applicable on rent payments if the landlord's rental income exceeds ₹20 lakh annually and the property is rented for commercial purposes. For residential properties, GST is generally not applicable."}}]})}})]}),(0,s.jsx)(E.Z,{}),(0,s.jsx)(LeadMagnetSidebar,{}),(0,s.jsx)(Y.Z,{isOpen:O,onClose:()=>{L(!1)},onFormSubmit:()=>{console.log("Demo form submitted")},source:"rent_receipt_generator"}),(0,s.jsx)(d.x,{py:8,bg:h,minH:"100vh",children:(0,s.jsxs)(j.W,{maxW:"container.xl",children:[(0,s.jsx)(f.k,{justifyContent:"space-between",alignItems:"center",mb:8,children:(0,s.jsx)(x.X,{as:"h1",size:"xl",children:"Rent Receipt Generator"})}),(0,s.jsx)(p.x,{mb:6,fontSize:"lg",children:"Create professional rent receipts in seconds. Fill in the details below to generate a downloadable receipt."}),(0,s.jsxs)(f.k,{direction:{base:"column",md:"row"},gap:{base:8,md:4},children:[(0,s.jsx)(d.x,{w:{base:"100%",md:"50%"},bg:a,p:6,borderRadius:"lg",boxShadow:"md",as:"form",onSubmit:handleFormSubmit,children:(0,s.jsxs)(b.K,{spacing:4,children:[(0,s.jsxs)(y.NI,{isRequired:!0,children:[(0,s.jsx)(w.l,{children:"Landlord Name"}),(0,s.jsx)(C.I,{name:"landlordName",value:U.landlordName,onChange:handleInputChange,placeholder:"Enter landlord's full name"})]}),(0,s.jsxs)(y.NI,{isRequired:!0,children:[(0,s.jsx)(w.l,{children:"Tenant Name"}),(0,s.jsx)(C.I,{name:"tenantName",value:U.tenantName,onChange:handleInputChange,placeholder:"Enter tenant's full name"})]}),(0,s.jsxs)(y.NI,{isRequired:!0,children:[(0,s.jsx)(w.l,{children:"Property Address"}),(0,s.jsx)(I.g,{name:"propertyAddress",value:U.propertyAddress,onChange:handleInputChange,placeholder:"Enter complete property address",rows:3})]}),(0,s.jsxs)(R.r,{templateColumns:"repeat(2, 1fr)",gap:4,children:[(0,s.jsx)(N.P,{children:(0,s.jsxs)(y.NI,{isRequired:!0,children:[(0,s.jsx)(w.l,{children:"Rent Amount (₹)"}),(0,s.jsx)(C.I,{name:"rentAmount",value:U.rentAmount,onChange:handleInputChange,placeholder:"e.g. 15000",type:"number"})]})}),(0,s.jsx)(N.P,{children:(0,s.jsxs)(y.NI,{isRequired:!0,children:[(0,s.jsx)(w.l,{children:"Payment Date"}),(0,s.jsx)(C.I,{name:"paymentDate",value:U.paymentDate,onChange:handleInputChange,type:"date"})]})})]}),(0,s.jsxs)(R.r,{templateColumns:"repeat(2, 1fr)",gap:4,children:[(0,s.jsx)(N.P,{children:(0,s.jsxs)(y.NI,{children:[(0,s.jsx)(w.l,{children:"Month"}),(0,s.jsx)(A.P,{name:"duration.month",value:U.duration.month,onChange:handleInputChange,children:T().months().map(e=>(0,s.jsx)("option",{value:e,children:e},e))})]})}),(0,s.jsx)(N.P,{children:(0,s.jsxs)(y.NI,{children:[(0,s.jsx)(w.l,{children:"Year"}),(0,s.jsx)(A.P,{name:"duration.year",value:U.duration.year,onChange:handleInputChange,children:(()=>{let e=T()().year(),n=[];for(let t=e-5;t<=e+5;t++)n.push((0,s.jsx)("option",{value:t,children:t},t));return n})()})]})})]}),(0,s.jsxs)(y.NI,{children:[(0,s.jsx)(w.l,{children:"Payment Mode"}),(0,s.jsx)(A.P,{name:"paymentMode",value:U.paymentMode,onChange:handleInputChange,children:q.map(e=>(0,s.jsx)("option",{value:e,children:e},e))})]}),(0,s.jsxs)(y.NI,{children:[(0,s.jsx)(w.l,{children:"Receipt Number"}),(0,s.jsx)(C.I,{name:"receiptNumber",value:U.receiptNumber,onChange:handleInputChange,placeholder:"Auto-generated receipt number"})]}),(0,s.jsx)(y.NI,{children:(0,s.jsx)(m.U,{children:(0,s.jsx)(S.X,{name:"includeGst",isChecked:U.includeGst,onChange:e=>{let{name:n,checked:t}=e.target;X({...U,[n]:t})},children:"Include GST"})})}),U.includeGst&&(0,s.jsxs)(y.NI,{children:[(0,s.jsx)(w.l,{children:"GST Number"}),(0,s.jsx)(C.I,{name:"gstNumber",value:U.gstNumber,onChange:handleInputChange,placeholder:"Enter GST number"})]}),(0,s.jsxs)(y.NI,{children:[(0,s.jsx)(w.l,{children:"Email Receipt To (Optional)"}),(0,s.jsx)(C.I,{type:"email",value:G,onChange:e=>W(e.target.value),placeholder:"Enter email address"})]}),(0,s.jsx)(f.k,{justifyContent:"space-between",gap:4,mt:4,children:(0,s.jsx)(F.z,{type:"submit",colorScheme:"electricBlue",leftIcon:(0,s.jsx)(_.FaDownload,{}),isLoading:v,loadingText:"Downloading...",flex:1,children:"Download Receipt"})})]})}),(0,s.jsx)(d.x,{w:{base:"100%",md:"50%"},position:"relative",children:(0,s.jsxs)(d.x,{position:"sticky",top:4,children:[(0,s.jsx)(x.X,{size:"md",mb:4,children:"Receipt Preview"}),(0,s.jsxs)(d.x,{ref:n,bg:a,color:l,p:6,borderRadius:"lg",boxShadow:"md",border:"1px",borderColor:c,children:[(0,s.jsxs)(f.k,{justifyContent:"space-between",alignItems:"center",mb:4,children:[(0,s.jsx)(x.X,{size:"lg",color:"electricBlue.500",children:"Rent Receipt"}),(0,s.jsxs)(p.x,{fontWeight:"bold",children:["#",U.receiptNumber]})]}),(0,s.jsx)(k.i,{mb:4}),(0,s.jsxs)(R.r,{templateColumns:"1fr 1fr",gap:6,mb:4,children:[(0,s.jsxs)(d.x,{children:[(0,s.jsx)(p.x,{fontWeight:"bold",mb:1,children:"Landlord:"}),(0,s.jsx)(p.x,{children:U.landlordName||"Landlord Name"})]}),(0,s.jsxs)(d.x,{children:[(0,s.jsx)(p.x,{fontWeight:"bold",mb:1,children:"Tenant:"}),(0,s.jsx)(p.x,{children:U.tenantName||"Tenant Name"})]})]}),(0,s.jsxs)(d.x,{mb:4,children:[(0,s.jsx)(p.x,{fontWeight:"bold",mb:1,children:"Property Address:"}),(0,s.jsx)(p.x,{children:U.propertyAddress||"Property Address"})]}),(0,s.jsxs)(R.r,{templateColumns:"1fr 1fr",gap:6,mb:4,children:[(0,s.jsxs)(d.x,{children:[(0,s.jsx)(p.x,{fontWeight:"bold",mb:1,children:"Period:"}),(0,s.jsxs)(p.x,{children:[U.duration.month," ",U.duration.year]}
1)]}),(0,s.jsxs)(d.x,{children:[(0,s.jsx)(p.x,{fontWeight:"bold",mb:1,children:"Payment Date:"}),(0,s.jsx)(p.x,{children:U.paymentDate?T()(U.paymentDate).format("DD MMM, YYYY"):T()().format("DD MMM, YYYY")})]})]}),(0,s.jsxs)(R.r,{templateColumns:"1fr 1fr",gap:6,mb:4,children:[(0,s.jsxs)(d.x,{children:[(0,s.jsx)(p.x,{fontWeight:"bold",mb:1,children:"Payment Mode:"}),(0,s.jsx)(p.x,{children:U.paymentMode})]}),(0,s.jsxs)(d.x,{children:[(0,s.jsx)(p.x,{fontWeight:"bold",mb:1,children:"Amount:"}),(0,s.jsxs)(p.x,{children:["₹",U.rentAmount||"0"]})]})]}),U.includeGst&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(R.r,{templateColumns:"1fr 1fr",gap:6,mb:4,children:[(0,s.jsxs)(d.x,{children:[(0,s.jsx)(p.x,{fontWeight:"bold",mb:1,children:"GST Number:"}),(0,s.jsx)(p.x,{children:U.gstNumber||"N/A"})]}),(0,s.jsxs)(d.x,{children:[(0,s.jsx)(p.x,{fontWeight:"bold",mb:1,children:"GST (18%):"}),(0,s.jsxs)(p.x,{children:["₹",U.gstAmount]})]})]}),(0,s.jsx)(k.i,{mb:4}),(0,s.jsxs)(f.k,{justifyContent:"space-between",mb:4,children:[(0,s.jsx)(p.x,{fontWeight:"bold",children:"Total Amount:"}),(0,s.jsxs)(p.x,{fontWeight:"bold",children:["₹",parseFloat(U.rentAmount||0)+parseFloat(U.gstAmount||0)]})]})]}),(0,s.jsx)(k.i,{mb:4}),(0,s.jsx)(p.x,{fontStyle:"italic",fontSize:"sm",color:"gray.500",mt:4,children:"This is a computer-generated receipt and does not require a signature."}),(0,s.jsx)(p.x,{fontSize:"sm",color:"gray.500",mt:2,textAlign:"center",children:"Generated via RentOk.com"}),(0,s.jsx)(p.x,{fontSize:"sm",color:"red.500",mt:3,textAlign:"center",fontStyle:"italic",children:"Disclaimer: RentOk is not responsible for any misuse of this receipt. This is only a receipt format and should be used for legitimate purposes only."})]})]})})]}),(0,s.jsxs)(d.x,{mt:12,bg:a,p:6,borderRadius:"lg",boxShadow:"md",children:[(0,s.jsx)(x.X,{as:"h2",size:"lg",mb:4,children:"Understanding Rent Receipts"}),(0,s.jsx)(p.x,{mb:4,children:"Rent receipts are important documents that serve as proof of rent payment. They are essential for:"}),(0,s.jsxs)(R.r,{templateColumns:{base:"1fr",md:"1fr 1fr"},gap:6,mb:6,children:[(0,s.jsxs)(d.x,{children:[(0,s.jsx)(x.X,{as:"h3",size:"md",mb:2,children:"For Tenants"}),(0,s.jsxs)(p.x,{children:["• Claiming HRA tax exemption ",(0,s.jsx)("br",{}),"• Maintaining financial records ",(0,s.jsx)("br",{}),"• Proof of payment in case of disputes ",(0,s.jsx)("br",{}),"• Verification for loan or visa applications"]})]}),(0,s.jsxs)(d.x,{children:[(0,s.jsx)(x.X,{as:"h3",size:"md",mb:2,children:"For Landlords"}),(0,s.jsxs)(p.x,{children:["• Income documentation ",(0,s.jsx)("br",{}),"• Organized record-keeping ",(0,s.jsx)("br",{}),"• Proof of rental agreement fulfillment ",(0,s.jsx)("br",{}),"• Tax filing requirements"]})]})]}),(0,s.jsx)(x.X,{as:"h3",size:"md",mb:2,children:"Legal Requirements"}),(0,s.jsxs)(p.x,{mb:4,children:["If you","'","re claiming HRA exemption in India, rent receipts are mandatory documents required by the Income Tax Department. For rent payments exceeding ₹1 lakh per annum, the landlord","'","s PAN details are also required."]})]})]})}),(0,s.jsx)(z.Z,{})]})}}},function(e){e.O(0,[1228,4617,9866,6556,4885,5443,5937,4321,2722,3442,8612,623,7215,2569,4350,832,9688,9774,2888,179],function(){return e(e.s=61442)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.