Subversion Repositories SmartDukaan

Rev

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

Rev 21005 Rev 21006
Line 386... Line 386...
386
    t_order.source = orderSource
386
    t_order.source = orderSource
387
    t_order.dataProtectionInsurer = dataProtectionInsurer
387
    t_order.dataProtectionInsurer = dataProtectionInsurer
388
    t_order.dataProtectionAmount = dataProtectionAmount
388
    t_order.dataProtectionAmount = dataProtectionAmount
389
    if item.category in [10006, 10010]:
389
    if item.category in [10006, 10010]:
390
        t_order.shippingCost = perUnitShippingCost*t_line_item.quantity
390
        t_order.shippingCost = perUnitShippingCost*t_line_item.quantity
-
 
391
    else:
-
 
392
        t_order.shippingCost = 0
391
    return t_order
393
    return t_order
392
        
394
        
393
def create_line_item(line, final_price, quantity=1, item=None):
395
def create_line_item(line, final_price, quantity=1, item=None):
394
    if item is None:
396
    if item is None:
395
        inventory_client = CatalogClient().get_client()
397
        inventory_client = CatalogClient().get_client()