| Line 31... |
Line 31... |
| 31 |
import com.google.gwt.user.client.ui.HorizontalPanel;
|
31 |
import com.google.gwt.user.client.ui.HorizontalPanel;
|
| 32 |
import com.google.gwt.user.client.ui.Label;
|
32 |
import com.google.gwt.user.client.ui.Label;
|
| 33 |
import com.google.gwt.user.client.ui.ResizeComposite;
|
33 |
import com.google.gwt.user.client.ui.ResizeComposite;
|
| 34 |
import com.google.gwt.user.client.ui.VerticalPanel;
|
34 |
import com.google.gwt.user.client.ui.VerticalPanel;
|
| 35 |
import com.google.gwt.user.client.ui.Widget;
|
35 |
import com.google.gwt.user.client.ui.Widget;
|
| - |
|
36 |
import com.google.gwt.user.client.ui.DialogBox;
|
| 36 |
|
37 |
|
| 37 |
public class OrderDetails extends ResizeComposite{
|
38 |
public class OrderDetails extends ResizeComposite{
|
| 38 |
|
39 |
|
| 39 |
public interface Listener{
|
40 |
public interface Listener{
|
| 40 |
void onClick();
|
41 |
void onClick();
|
| Line 249... |
Line 250... |
| 249 |
if(!printInvoice.isEnabled())
|
250 |
if(!printInvoice.isEnabled())
|
| 250 |
return;
|
251 |
return;
|
| 251 |
if(order.getJacketNumber()==0 && (billingType == BillingType.OURS || billingType == BillingType.OURS_EXTERNAL)) {
|
252 |
if(order.getJacketNumber()==0 && (billingType == BillingType.OURS || billingType == BillingType.OURS_EXTERNAL)) {
|
| 252 |
long total_quantity_to_bill = 0;
|
253 |
long total_quantity_to_bill = 0;
|
| 253 |
for(Long orderId : order.getBillTogetherOrdersMap().keySet()){
|
254 |
for(Long orderId : order.getBillTogetherOrdersMap().keySet()){
|
| 254 |
boolean hasSerialized = Boolean.parseBoolean(getBillTogetherOrdersMap().get(orderId).get("IsSerialized"));
|
255 |
boolean hasSerialized = Boolean.parseBoolean(order.getBillTogetherOrdersMap().get(orderId).get("IsSerialized"));
|
| 255 |
if (hasSerialized){
|
256 |
if (hasSerialized){
|
| 256 |
total_quantity_to_bill += (long)Double.parseDouble(getBillTogetherOrdersMap().get(orderId).get("Quantity"));
|
257 |
total_quantity_to_bill += (long)Double.parseDouble(order.getBillTogetherOrdersMap().get(orderId).get("Quantity"));
|
| 257 |
}
|
258 |
}
|
| 258 |
}
|
259 |
}
|
| 259 |
DialogBox box;
|
260 |
DialogBox box;
|
| 260 |
if (total_quantity_to_bill > 1){
|
261 |
if (total_quantity_to_bill > 1){
|
| 261 |
ShipmentDelayUpload box = new ShipmentDelayUpload(eventbus);
|
262 |
ShipmentDelayUpload box = new ShipmentDelayUpload(eventbus);
|