| Line 4199... |
Line 4199... |
| 4199 |
PAGE_HEIGHT=defaultPageSize[1]; PAGE_WIDTH=defaultPageSize[0]
|
4199 |
PAGE_HEIGHT=defaultPageSize[1]; PAGE_WIDTH=defaultPageSize[0]
|
| 4200 |
styles = getSampleStyleSheet()
|
4200 |
styles = getSampleStyleSheet()
|
| 4201 |
styles.add(ParagraphStyle(name='left', leftIndent=12,fontSize=11), alias='li')
|
4201 |
styles.add(ParagraphStyle(name='left', leftIndent=12,fontSize=11), alias='li')
|
| 4202 |
styles.add(ParagraphStyle(name='bullet', bulletIndent=24, leftIndent=24), alias='bull')
|
4202 |
styles.add(ParagraphStyle(name='bullet', bulletIndent=24, leftIndent=24), alias='bull')
|
| 4203 |
|
4203 |
|
| 4204 |
invoiceNumber = order.invoice_number
|
4204 |
invoiceNumber = str(order.invoice_number)
|
| 4205 |
billing_timestamp = str(order.billing_timestamp.date())
|
4205 |
billing_timestamp = str(order.billing_timestamp.date())
|
| 4206 |
|
4206 |
|
| 4207 |
doc = SimpleDocTemplate(filename)
|
4207 |
doc = SimpleDocTemplate(filename)
|
| 4208 |
Story = [Spacer(1,0.4*inch)]
|
4208 |
Story = [Spacer(1,0.4*inch)]
|
| 4209 |
style = styles["Normal"]
|
4209 |
style = styles["Normal"]
|
| Line 4211... |
Line 4211... |
| 4211 |
Sold 'online' by <b>Spice Online Retail Private Limited, New Delhi</b>, to its customers.""")
|
4211 |
Sold 'online' by <b>Spice Online Retail Private Limited, New Delhi</b>, to its customers.""")
|
| 4212 |
p = Paragraph(text, style)
|
4212 |
p = Paragraph(text, style)
|
| 4213 |
Story.append(p)
|
4213 |
Story.append(p)
|
| 4214 |
Story.append(Spacer(1,0.2*inch))
|
4214 |
Story.append(Spacer(1,0.2*inch))
|
| 4215 |
text = ("""Insurer will indemnify the Insured in the event of Theft/Burglary of <i>Mobile Handsets</i>
|
4215 |
text = ("""Insurer will indemnify the Insured in the event of Theft/Burglary of <i>Mobile Handsets</i>
|
| 4216 |
alone and <i>Tablets with 'Voice Calls'</i> only sold as per Invoice No. %d
|
4216 |
alone and <i>Tablets with 'Voice Calls'</i> only sold as per Invoice No. %s
|
| 4217 |
dated %s and insured with THE NEW INDIA ASSURANCE COMPANY LIMITED, BANGALORE, as per Policy No. 671700/46/12/2400000008,
|
4217 |
dated %s and insured with THE NEW INDIA ASSURANCE COMPANY LIMITED, BANGALORE, as per Policy No. 671700/46/12/2400000008,
|
| 4218 |
for a period of 12 months from the date and time of delivery of Mobile Handset to the customer.""" % (invoiceNumber, billing_timestamp))
|
4218 |
for a period of 12 months from the date and time of delivery of Mobile Handset to the customer.""" % (invoiceNumber, billing_timestamp))
|
| 4219 |
p = Paragraph(text, style)
|
4219 |
p = Paragraph(text, style)
|
| 4220 |
Story.append(p)
|
4220 |
Story.append(p)
|
| 4221 |
Story.append(Spacer(1,0.2*inch))
|
4221 |
Story.append(Spacer(1,0.2*inch))
|