Subversion Repositories SmartDukaan

Rev

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

Rev 21844 Rev 21847
Line 501... Line 501...
501
        try:
501
        try:
502
            return [Supplier.to_thrift_object(supplier) for supplier in Supplier.query.filter(Supplier.gstin != None).all()]
502
            return [Supplier.to_thrift_object(supplier) for supplier in Supplier.query.filter(Supplier.gstin != None).all()]
503
        finally:
503
        finally:
504
            self.close_session()
504
            self.close_session()
505
 
505
 
-
 
506
    def getAllSuppliers(self,):
-
 
507
        """
-
 
508
        Returns all the valid suppliers
-
 
509
        """
-
 
510
        try:
-
 
511
            return [Supplier.to_thrift_object(supplier) for supplier in Supplier.query.all()]
-
 
512
        finally:
-
 
513
            self.close_session()
-
 
514
 
506
    def unFulfillPO(self, purchaseId, itemId, quantity):
515
    def unFulfillPO(self, purchaseId, itemId, quantity):
507
        """
516
        """
508
        Unfulfills a given purchase id and an item with its quantity.
517
        Unfulfills a given purchase id and an item with its quantity.
509
 
518
 
510
        Parameters:
519
        Parameters: