Subversion Repositories SmartDukaan

Rev

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

Rev 18755 Rev 18756
Line 8886... Line 8886...
8886
    new_order.lineitems[0].quantity = split_order_quantity
8886
    new_order.lineitems[0].quantity = split_order_quantity
8887
    new_order.lineitems[0].total_price = new_order.lineitems[0].unit_price*split_order_quantity
8887
    new_order.lineitems[0].total_price = new_order.lineitems[0].unit_price*split_order_quantity
8888
    new_order.lineitems[0].total_weight = new_order.lineitems[0].unit_weight*split_order_quantity
8888
    new_order.lineitems[0].total_weight = new_order.lineitems[0].unit_weight*split_order_quantity
8889
    new_order.total_amount = new_order.lineitems[0].total_price
8889
    new_order.total_amount = new_order.lineitems[0].total_price
8890
    new_order.total_weight = new_order.lineitems[0].total_weight
8890
    new_order.total_weight = new_order.lineitems[0].total_weight
8891
    new_order.
-
 
8892
    new_order.shippingCost = round((order.shippingCost/order.lineitems[0].quantity)*split_order_quantity,0)
8891
    new_order.shippingCost = round((order.shippingCost/order.lineitems[0].quantity)*split_order_quantity,0)
8893
    
8892
    
8894
    order.lineitems[0].quantity = order.lineitems[0].quantity - split_order_quantity
8893
    order.lineitems[0].quantity = order.lineitems[0].quantity - split_order_quantity
8895
    order.lineitems[0].total_price = order.lineitems[0].unit_price * order.lineitems[0].quantity
8894
    order.lineitems[0].total_price = order.lineitems[0].unit_price * order.lineitems[0].quantity
8896
    order.lineitems[0].total_weight = order.lineitems[0].unit_weight*order.lineitems[0].quantity
8895
    order.lineitems[0].total_weight = order.lineitems[0].unit_weight*order.lineitems[0].quantity