|
|
@@ -693,10 +693,10 @@ public class OrderItemsHelper extends BaseClass {
|
|
|
if(aftersalesbompjrows.isNotEmpty()){
|
|
|
insertSQL.setValue("canoffqty", aftersalesbompjrows.get(0).getBigDecimal("qty").compareTo(qty)>0?qty:aftersalesbompjrows.get(0).getBigDecimal("qty"));
|
|
|
}else{
|
|
|
- insertSQL.setValue("canoffqty", qty);
|
|
|
+ insertSQL.setValue("canoffqty", 1);
|
|
|
}
|
|
|
}else{
|
|
|
- insertSQL.setValue("canoffqty", qty);
|
|
|
+ insertSQL.setValue("canoffqty", 1);
|
|
|
}
|
|
|
}
|
|
|
|