Subversion Repositories SmartDukaan

Rev

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

Rev 17484 Rev 17486
Line 366... Line 366...
366
    else:
366
    else:
367
        freebie_item_id = None if freebieId == 0 else freebieId  
367
        freebie_item_id = None if freebieId == 0 else freebieId  
368
    t_order.source = orderSource
368
    t_order.source = orderSource
369
    t_order.dataProtectionInsurer = dataProtectionInsurer
369
    t_order.dataProtectionInsurer = dataProtectionInsurer
370
    t_order.dataProtectionAmount = dataProtectionAmount
370
    t_order.dataProtectionAmount = dataProtectionAmount
371
    t_order.shippingCost = round((t_line_item.total_price/totalCartVal)*totalshippingCost, 0)
371
    t_order.shippingCost = round((t_line_item.total_price*totalshippingCost)/totalCartVal, 0)
372
    return t_order
372
    return t_order
373
        
373
        
374
def create_line_item(line, final_price, quantity=1):
374
def create_line_item(line, final_price, quantity=1):
375
    inventory_client = CatalogClient().get_client()
375
    inventory_client = CatalogClient().get_client()
376
    item = inventory_client.getItem(line.item_id)
376
    item = inventory_client.getItem(line.item_id)