Subversion Repositories SmartDukaan

Rev

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

Rev 18914 Rev 18952
Line 8377... Line 8377...
8377
            
8377
            
8378
            try:
8378
            try:
8379
                if not inventory_client.isAlive():
8379
                if not inventory_client.isAlive():
8380
                    inventory_client = InventoryClient().get_client()
8380
                    inventory_client = InventoryClient().get_client()
8381
                warehouse = inventory_client.getWarehouse(order.fulfilmentWarehouseId)
8381
                warehouse = inventory_client.getWarehouse(order.fulfilmentWarehouseId)
8382
                if order.productCondition == ProductCondition.BAD:
8382
                if order.productCondition != ProductCondition.BAD:
8383
                    item_pricing = inventory_client.getItemPricing(item_id, warehouse.vendor.id)
8383
                    item_pricing = inventory_client.getItemPricing(item_id, warehouse.vendor.id)
8384
                    lineitem.transfer_price = item_pricing.transferPrice
8384
                    lineitem.transfer_price = item_pricing.transferPrice
8385
                    lineitem.nlc = item_pricing.nlc
8385
                    lineitem.nlc = item_pricing.nlc
8386
                if order.taxType == TaxType.CFORM:
8386
                if order.taxType == TaxType.CFORM:
8387
                    lineitem.vatRate = 2
8387
                    lineitem.vatRate = 2