Subversion Repositories SmartDukaan

Rev

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

Rev 6232 Rev 6242
Line 167... Line 167...
167
        missedInventoryUpdate.isIgnored = 1
167
        missedInventoryUpdate.isIgnored = 1
168
        missedInventoryUpdate.timestamp = datetime.datetime.now()
168
        missedInventoryUpdate.timestamp = datetime.datetime.now()
169
        missedInventoryUpdate.warehouseId = warehouse_id
169
        missedInventoryUpdate.warehouseId = warehouse_id
170
        session.commit()
170
        session.commit()
171
        try:
171
        try:
172
            EmailAttachmentSender.mail(mail_user, mail_password, ['chaitnaya.vats@shop2020.in', 'asghar.bilgrami@shop2020.in', 'amar.kumar@shop2020.in'], 'Skipped inventory update for ' + item_key + ' quantity ' + str(quantity) + ' warehouse id: ' + str(warehouse_id), None)
172
            EmailAttachmentSender.mail(mail_user, mail_password, ['chaitnaya.vats@shop2020.in', 'chandan.kumar@spiceretail.co.in', 'amar.kumar@shop2020.in'], 'Skipped inventory update for ' + item_key + ' quantity ' + str(quantity) + ' warehouse id: ' + str(warehouse_id), None)
173
        except:
173
        except:
174
            print "Not able to send email. No issues, we can continue with updates."
174
            print "Not able to send email. No issues, we can continue with updates."
175
    else:
175
    else:
176
        missedInventoryUpdate.quantity += quantity
176
        missedInventoryUpdate.quantity += quantity
177
        session.commit()
177
        session.commit()