Subversion Repositories SmartDukaan

Rev

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

Rev 17527 Rev 17528
Line 8679... Line 8679...
8679
    new_order.lineitems[0].quantity = split_order_quantity
8679
    new_order.lineitems[0].quantity = split_order_quantity
8680
    new_order.lineitems[0].total_price = new_order.lineitems[0].unit_price*split_order_quantity
8680
    new_order.lineitems[0].total_price = new_order.lineitems[0].unit_price*split_order_quantity
8681
    new_order.lineitems[0].total_weight = new_order.lineitems[0].unit_weight*split_order_quantity
8681
    new_order.lineitems[0].total_weight = new_order.lineitems[0].unit_weight*split_order_quantity
8682
    new_order.total_amount = new_order.lineitems[0].total_price
8682
    new_order.total_amount = new_order.lineitems[0].total_price
8683
    new_order.total_weight = new_order.lineitems[0].total_weight
8683
    new_order.total_weight = new_order.lineitems[0].total_weight
8684
    new_order.shippingCost = math.floor((order.shippingCost/order.lineitems[0].quantity)*split_order_quantity)
8684
    new_order.shippingCost = round((order.shippingCost/order.lineitems[0].quantity)*split_order_quantity,0)
8685
    
8685
    
8686
    order.lineitems[0].quantity = order.lineitems[0].quantity - split_order_quantity
8686
    order.lineitems[0].quantity = order.lineitems[0].quantity - split_order_quantity
8687
    order.lineitems[0].total_price = order.lineitems[0].unit_price * order.lineitems[0].quantity
8687
    order.lineitems[0].total_price = order.lineitems[0].unit_price * order.lineitems[0].quantity
8688
    order.lineitems[0].total_weight = order.lineitems[0].unit_weight*order.lineitems[0].quantity
8688
    order.lineitems[0].total_weight = order.lineitems[0].unit_weight*order.lineitems[0].quantity
8689
    order.total_amount = order.lineitems[0].total_price
8689
    order.total_amount = order.lineitems[0].total_price