소스 검색

fix: 修正单据金额计算逻辑,优先使用已收总价

xieyong 19 시간 전
부모
커밋
9b9392fac5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/views/financialManage/receivableManage/components/collectionDialog.vue

+ 1 - 1
src/views/financialManage/receivableManage/components/collectionDialog.vue

@@ -441,7 +441,7 @@ export default {
       this.$set(item, 'singlePrice', singlePrice);
       this.$set(item, 'taxRate', taxRate);
       this.$set(item, 'discountRatio', discountRatio);
-      this.$set(item, 'statementAmount', amount);
+      this.$set(item, 'statementAmount', item?.receivedTotalPrice || amount);
       this.$set(item, 'noTaxSinglePrice', noTaxSinglePrice);
       this.$set(item, 'totalPrice', totalPrice);
       this.$set(item, 'discountSinglePrice', discountSinglePrice);