예제 #1
0
def create_purchase_info(record):
    return strategy.PurchaseInfo(
        price=prices.FixedPrice(
            record.price_currency,
            record.price_excl_tax,
            D('0.00')  # Default to no tax
        ),
        availability=availability.StockRequired(record.net_stock_level),
        stockrecord=record)
예제 #2
0
 def setUp(self):
     self.availability = availability.StockRequired(0)