Subversion Repositories SmartDukaan

Rev

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

Rev 8204 Rev 8214
Line 198... Line 198...
198
        missedInventoryUpdate.isIgnored = 1
198
        missedInventoryUpdate.isIgnored = 1
199
        missedInventoryUpdate.timestamp = datetime.datetime.now()
199
        missedInventoryUpdate.timestamp = datetime.datetime.now()
200
        missedInventoryUpdate.warehouseId = warehouse_id
200
        missedInventoryUpdate.warehouseId = warehouse_id
201
        session.commit()
201
        session.commit()
202
        try:
202
        try:
203
            EmailAttachmentSender.mail(mail_user, mail_password, ['chaitnaya.vats@shop2020.in', 'chandan.kumar@shop2020.in', 'khushal.bhatia@shop2020.in'], 'Skipped inventory update for ' + item_key + ' quantity ' + str(quantity) + ' warehouse id: ' + str(warehouse_id), None)
203
            EmailAttachmentSender.mail(mail_user, mail_password, ['chaitnaya.vats@shop2020.in', 'chandan.kumar@shop2020.in', 'khushal.bhatia@shop2020.in', 'manoj.kumar@shop2020.in'], 'Skipped inventory update for ' + item_key + ' quantity ' + str(quantity) + ' warehouse id: ' + str(warehouse_id), None)
204
        except:
204
        except:
205
            print "Not able to send email. No issues, we can continue with updates."
205
            print "Not able to send email. No issues, we can continue with updates."
206
    else:
206
    else:
207
        missedInventoryUpdate.quantity += quantity
207
        missedInventoryUpdate.quantity += quantity
208
        session.commit()
208
        session.commit()