| Line 289... |
Line 289... |
| 289 |
commodities[0].setNumberOfPieces(new NonNegativeInteger(1+""));
|
289 |
commodities[0].setNumberOfPieces(new NonNegativeInteger(1+""));
|
| 290 |
commodities[0].setDescription("Sample Commodity Data");
|
290 |
commodities[0].setDescription("Sample Commodity Data");
|
| 291 |
commodities[0].setCountryOfManufacture("India");
|
291 |
commodities[0].setCountryOfManufacture("India");
|
| 292 |
commodities[0].setQuantity(new NonNegativeInteger(1+""));
|
292 |
commodities[0].setQuantity(new NonNegativeInteger(1+""));
|
| 293 |
commodities[0].setQuantityUnits("EA");
|
293 |
commodities[0].setQuantityUnits("EA");
|
| 294 |
commodities[0].setWeight(new Weight(WeightUnits.LB,new BigDecimal(totalWeight)));
|
294 |
commodities[0].setWeight(new Weight(WeightUnits.KG,new BigDecimal(totalWeight)));
|
| 295 |
commodities[0].setUnitPrice(new Money("INR",new BigDecimal(totalAmount)));
|
295 |
commodities[0].setUnitPrice(new Money("INR",new BigDecimal(totalAmount)));
|
| 296 |
CommercialInvoice ci= new CommercialInvoice();
|
296 |
CommercialInvoice ci= new CommercialInvoice();
|
| 297 |
ci.setPurpose(PurposeOfShipmentType.SOLD);
|
297 |
ci.setPurpose(PurposeOfShipmentType.SOLD);
|
| 298 |
detail.setCommercialInvoice(ci);
|
298 |
detail.setCommercialInvoice(ci);
|
| 299 |
detail.setCommodities(commodities);
|
299 |
detail.setCommodities(commodities);
|
| Line 326... |
Line 326... |
| 326 |
for(Order t_order: orders){
|
326 |
for(Order t_order: orders){
|
| 327 |
totalWeight = totalWeight + t_order.getTotal_weight();
|
327 |
totalWeight = totalWeight + t_order.getTotal_weight();
|
| 328 |
}
|
328 |
}
|
| 329 |
RequestedPackageLineItem requestedPackageLineItem = new RequestedPackageLineItem();
|
329 |
RequestedPackageLineItem requestedPackageLineItem = new RequestedPackageLineItem();
|
| 330 |
requestedPackageLineItem.setSequenceNumber(new PositiveInteger("1"));
|
330 |
requestedPackageLineItem.setSequenceNumber(new PositiveInteger("1"));
|
| 331 |
requestedPackageLineItem.setWeight(addPackageWeight(new Double(totalWeight), WeightUnits.LB));
|
331 |
requestedPackageLineItem.setWeight(addPackageWeight(new Double(totalWeight), WeightUnits.KG));
|
| 332 |
requestedPackageLineItem.setCustomerReferences(new CustomerReference[]{
|
332 |
requestedPackageLineItem.setCustomerReferences(new CustomerReference[]{
|
| 333 |
addCustomerReference(CustomerReferenceType.CUSTOMER_REFERENCE.getValue(), orders.get(0).getCustomer_name()),
|
333 |
addCustomerReference(CustomerReferenceType.CUSTOMER_REFERENCE.getValue(), orders.get(0).getCustomer_name()),
|
| 334 |
addCustomerReference(CustomerReferenceType.INVOICE_NUMBER.getValue(), orders.get(0).getLogisticsTransactionId()+""),
|
334 |
addCustomerReference(CustomerReferenceType.INVOICE_NUMBER.getValue(), orders.get(0).getLogisticsTransactionId()+""),
|
| 335 |
addCustomerReference(CustomerReferenceType.P_O_NUMBER.getValue(), orders.get(0).getLogisticsTransactionId()+""),
|
335 |
addCustomerReference(CustomerReferenceType.P_O_NUMBER.getValue(), orders.get(0).getLogisticsTransactionId()+""),
|
| 336 |
});
|
336 |
});
|