Subversion Repositories SmartDukaan

Rev

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

Rev 8128 Rev 8186
Line 353... Line 353...
353
	                //If order has a freebie order attached with it
353
	                //If order has a freebie order attached with it
354
	                detailedAwb.setShipmentValue("" + (order.getTotal_amount()));
354
	                detailedAwb.setShipmentValue("" + (order.getTotal_amount()));
355
	            } else {
355
	            } else {
356
	                //else if the order is itself a split freebie order then we don't know how much was the selling price at the time of order
356
	                //else if the order is itself a split freebie order then we don't know how much was the selling price at the time of order
357
	                //so we set the transfer price as shipment value
357
	                //so we set the transfer price as shipment value
358
	                if (lineitem.getExtra_info().contains("Freebie Order for Order ID")) {
358
	                if (lineitem.getExtra_info() != null && lineitem.getExtra_info().contains("Freebie Order for Order ID")) {
359
	                    detailedAwb.setShipmentValue("" + (lineitem.getTransfer_price()));
359
	                    detailedAwb.setShipmentValue("" + (lineitem.getTransfer_price()));
360
	                } else {
360
	                } else {
361
	                    //Else set total amount
361
	                    //Else set total amount
362
	                    detailedAwb.setShipmentValue("" + (order.getTotal_amount()));
362
	                    detailedAwb.setShipmentValue("" + (order.getTotal_amount()));
363
	                }
363
	                }