Subversion Repositories SmartDukaan

Rev

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

Rev 4763 Rev 4767
Line 705... Line 705...
705
    if not order:
705
    if not order:
706
        raise TransactionServiceException(101, "No order found for the given order id" + str(orderId))
706
        raise TransactionServiceException(101, "No order found for the given order id" + str(orderId))
707
    
707
    
708
    if order.status == OrderStatus.ACCEPTED:
708
    if order.status == OrderStatus.ACCEPTED:
709
        order.invoice_number = invoiceNumber
709
        order.invoice_number = invoiceNumber
-
 
710
        if color:
710
        billedOrdersColorMap[orderId] = color;
711
            billedOrdersColorMap[orderId] = color;
711
    session.commit()
712
    session.commit()
712
    
713
    
713
def batch_orders(warehouseId):
714
def batch_orders(warehouseId):
714
    if not warehouseId:
715
    if not warehouseId:
715
        raise TransactionServiceException(101, "bad warehouse id")
716
        raise TransactionServiceException(101, "bad warehouse id")