| Line 249... |
Line 249... |
| 249 |
if(!printInvoice.isEnabled())
|
249 |
if(!printInvoice.isEnabled())
|
| 250 |
return;
|
250 |
return;
|
| 251 |
if(order.getJacketNumber()==0 && (billingType == BillingType.OURS || billingType == BillingType.OURS_EXTERNAL)) {
|
251 |
if(order.getJacketNumber()==0 && (billingType == BillingType.OURS || billingType == BillingType.OURS_EXTERNAL)) {
|
| 252 |
long total_quantity_to_bill = 0;
|
252 |
long total_quantity_to_bill = 0;
|
| 253 |
for(Long orderId : order.getBillTogetherOrdersMap().keySet()){
|
253 |
for(Long orderId : order.getBillTogetherOrdersMap().keySet()){
|
| 254 |
boolean hasSerialized = Boolean.parseBoolean(billTogetherOrdersMap.get(orderId).get("IsSerialized"));
|
254 |
boolean hasSerialized = Boolean.parseBoolean(getBillTogetherOrdersMap().get(orderId).get("IsSerialized"));
|
| 255 |
if (hasSerialized){
|
255 |
if (hasSerialized){
|
| 256 |
total_quantity_to_bill += (long)Double.parseDouble(billTogetherOrdersMap.get(orderId).get("Quantity"));
|
256 |
total_quantity_to_bill += (long)Double.parseDouble(getBillTogetherOrdersMap().get(orderId).get("Quantity"));
|
| 257 |
}
|
257 |
}
|
| 258 |
}
|
258 |
}
|
| 259 |
DialogBox box;
|
259 |
DialogBox box;
|
| 260 |
if (total_quantity_to_bill > 1){
|
260 |
if (total_quantity_to_bill > 1){
|
| 261 |
ShipmentDelayUpload box = new ShipmentDelayUpload(eventbus);
|
261 |
ShipmentDelayUpload box = new ShipmentDelayUpload(eventbus);
|