Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/BLOrderBook.py   Products.BastionLedger(Download)
    def totalTaxInclusiveAmount(self, datemin, datemax):
        obs = map ( lambda x: x.getObject(),
                    self.catalog( orderdate = { 'query': [datemin, datemax], 'range':'minmax' },
                                               status = {'query': 'invoiced' } ) )
        if obs:
    def totalTaxExclusiveAmount(self, datemin, datemax):
        obs = map ( lambda x: x.getObject(),
                    self.catalog( orderdate = { 'query': [datemin, datemax], 'range':'minmax' },
                                               status = {'query': 'invoiced' } ) )
 
    def totalAmount(self, datemin, datemax):
        LOG.debug( "BLOrderBook::totalAmount() cat = %s" % str( self.catalog( status = {'query':'invoiced'} ) ))
        amts = map ( lambda x: x.getObject().getGross(),
                    self.catalog(orderdate = { 'query': [datemin, datemax], 'range':'minmax' },
                                 status = {'query':'invoiced'} ))