Subversion Repositories SmartDukaan

Rev

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

Rev 5496 Rev 5530
Line 23... Line 23...
23
        body.append("\t".join([date, invoiceScan.invoiceNumber, invoiceScan.supplierName, str(invoiceScan.numItems), str(invoiceScan.scannedQuantity)]))
23
        body.append("\t".join([date, invoiceScan.invoiceNumber, invoiceScan.supplierName, str(invoiceScan.numItems), str(invoiceScan.scannedQuantity)]))
24
        unscannedCount += invoiceScan.numItems - invoiceScan.scannedQuantity
24
        unscannedCount += invoiceScan.numItems - invoiceScan.scannedQuantity
25
    subject = date + ': All items scanned IN!'
25
    subject = date + ': All items scanned IN!'
26
    if body.__len__() > 1:
26
    if body.__len__() > 1:
27
        subject = date + ': ' + str(unscannedCount) + ' items not scanned IN yet'
27
        subject = date + ': ' + str(unscannedCount) + ' items not scanned IN yet'
28
    EmailAttachmentSender.mail('cnc.center@shop2020.in', '5h0p2o2o', 'mandeep.dhir@shop2020.in', subject, "\n".join(body))
28
    EmailAttachmentSender.mail('cnc.center@shop2020.in', '5h0p2o2o', ['mandeep.dhir@shop2020.in', 'ashutosh.saxena@shop2020.in', 'sandeep.sachdeva@shop2020.in'], subject, "\n".join(body))
29
 
29
 
30
def generateAndReportScanMismatches(date):
30
def generateAndReportScanMismatches(date):
31
    reportMismatches(generateScanMismatches(date), date)
31
    reportMismatches(generateScanMismatches(date), date)
32
 
32
 
33
def main():
33
def main():