Преглед на файлове

修改发票管理 重构代码

y преди 2 години
родител
ревизия
176632aa48
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/main/java/com/ydtech/modules/inv/service/impl/InvAccountIncoiceServiceImpl.java

+ 1 - 1
src/main/java/com/ydtech/modules/inv/service/impl/InvAccountIncoiceServiceImpl.java

@@ -151,7 +151,7 @@ public class InvAccountIncoiceServiceImpl extends ServiceImpl<InvAccountIncoiceM
         outInvAccountOperate.setCreateTime(LocalDateTime.now());
 
         for (Map.Entry<String, Object> entry : outProfit.entrySet()) {
-            outProfit.put(entry.getKey(), new BigDecimal(String.valueOf(entry.getValue())).negate().toString());
+            outProfit.put(entry.getKey(), new BigDecimal(String.valueOf(entry.getValue())).toString());
         }
         outInvAccountOperate.setOutProfit(outProfit);