Subversion Repositories SmartDukaan

Rev

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

Rev 6562 Rev 6581
Line 191... Line 191...
191
        missedInventoryUpdate.isIgnored = 1
191
        missedInventoryUpdate.isIgnored = 1
192
        missedInventoryUpdate.timestamp = datetime.datetime.now()
192
        missedInventoryUpdate.timestamp = datetime.datetime.now()
193
        missedInventoryUpdate.warehouseId = warehouse_id
193
        missedInventoryUpdate.warehouseId = warehouse_id
194
        session.commit()
194
        session.commit()
195
        try:
195
        try:
196
            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)
196
            EmailAttachmentSender.mail(mail_user, mail_password, ['chaitnaya.vats@shop2020.in', 'chandan.kumar@spiceretail.co.in', 'khushal.bhatia@shop2020.in'], 'Skipped inventory update for ' + item_key + ' quantity ' + str(quantity) + ' warehouse id: ' + str(warehouse_id), None)
197
        except:
197
        except:
198
            print "Not able to send email. No issues, we can continue with updates."
198
            print "Not able to send email. No issues, we can continue with updates."
199
    else:
199
    else:
200
        missedInventoryUpdate.quantity += quantity
200
        missedInventoryUpdate.quantity += quantity
201
        session.commit()
201
        session.commit()