| Line 248... |
Line 248... |
| 248 |
public void onClick(ClickEvent event) {
|
248 |
public void onClick(ClickEvent event) {
|
| 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 : billTogetherOrdersMap.keySet()){
|
253 |
for(Long orderId : order.getBillTogetherOrdersMap().keySet()){
|
| 254 |
boolean hasSerialized = Boolean.parseBoolean(billTogetherOrdersMap.get(orderId).get("IsSerialized"));
|
254 |
boolean hasSerialized = Boolean.parseBoolean(billTogetherOrdersMap.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(billTogetherOrdersMap.get(orderId).get("Quantity"));
|
| 257 |
}
|
257 |
}
|
| 258 |
}
|
258 |
}
|