Explorar el Código

配件订单不乘价格系数

hu hace 5 meses
padre
commit
cac7a7508d

+ 1 - 1
src/custom/restcontroller/webmanage/sale/order/OrderItems.java

@@ -178,7 +178,7 @@ public class OrderItems extends Controller {
 //            int year = Year.now().getValue();
 //            int quarter = YearMonth.now().get(IsoFields.QUARTER_OF_YEAR);
             Rows custamountrows = dbConnect.runSqlQuery("select * from sa_agents where sys_enterpriseid=" + sys_enterpriseid + " and siteid='" + siteid + "'");
-            if(custamountrows.isNotEmpty()){
+            if(custamountrows.isNotEmpty() && !type.equals("配件订单")){
                 if(custamountrows.get(0).getDouble("pricerate")>0){
                     rwpricerate = custamountrows.get(0).getBigDecimal("pricerate");
                 }