Jelajahi Sumber

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

xieyong 13 jam lalu
induk
melakukan
9b9392fac5

+ 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);