Subversion Repositories SmartDukaan

Rev

Rev 16957 | Rev 16995 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16957 Rev 16958
Line 648... Line 648...
648
    email.append('amit.gupta@shop2020.in')
648
    email.append('amit.gupta@shop2020.in')
649
    MAILTO = email 
649
    MAILTO = email 
650
    mailServer.login(SENDER, PASSWORD)
650
    mailServer.login(SENDER, PASSWORD)
651
    mailServer.sendmail(PASSWORD, MAILTO, msg.as_string())
651
    mailServer.sendmail(PASSWORD, MAILTO, msg.as_string())
652
 
652
 
653
def setHeaders(worksheet, worksheet1, worksheet2, affNotReconciledSheet, worksheet3):
653
def setHeaders(worksheet, worksheet1, worksheet2, affNotReconciledSheet, worksheet3=None):
654
    boldStyle = xlwt.XFStyle()
654
    boldStyle = xlwt.XFStyle()
655
    f = xlwt.Font()
655
    f = xlwt.Font()
656
    f.bold = True
656
    f.bold = True
657
    boldStyle.font = f
657
    boldStyle.font = f
658
    row = 0
658
    row = 0
Line 728... Line 728...
728
    affNotReconciledSheet.write(row, inc(), 'Sale Amount', boldStyle) 
728
    affNotReconciledSheet.write(row, inc(), 'Sale Amount', boldStyle) 
729
    affNotReconciledSheet.write(row, inc(), 'Pay Out', boldStyle) 
729
    affNotReconciledSheet.write(row, inc(), 'Pay Out', boldStyle) 
730
    affNotReconciledSheet.write(row, inc(), 'Status', boldStyle) 
730
    affNotReconciledSheet.write(row, inc(), 'Status', boldStyle) 
731
    affNotReconciledSheet.write(row, inc(), 'IP', boldStyle)
731
    affNotReconciledSheet.write(row, inc(), 'IP', boldStyle)
732
 
732
 
-
 
733
    if worksheet3:
733
    i =-1
734
        i =-1
734
    worksheet3.write(row, inc(), 'Date', boldStyle) 
735
        worksheet3.write(row, inc(), 'Date', boldStyle) 
735
    worksheet3.write(row, inc(), 'Sale Amount', boldStyle) 
736
        worksheet3.write(row, inc(), 'Sale Amount', boldStyle) 
736
    worksheet3.write(row, inc(), 'Approved Sales', boldStyle) 
737
        worksheet3.write(row, inc(), 'Approved Sales', boldStyle) 
737
    worksheet3.write(row, inc(), 'Rejected Sales', boldStyle) 
738
        worksheet3.write(row, inc(), 'Rejected Sales', boldStyle) 
738
 
739
 
739
def getUserAmountReconciled():
740
def getUserAmountReconciled():
740
    pass
741
    pass
741
 
742
 
742
def getUserOrders():
743
def getUserOrders():