| | |
| | | ReceivableLineTruckPriceRule exactMatchingRule = ExactPricingRuleMatcher.findExactMatchingRule(receivableLineTruckPriceRules, pendingSettlementBusiness.getCustomerName(), pendingSettlementBusiness.getDepartureLocation(), pendingSettlementBusiness.getArrivalLocation(), pendingSettlementBusiness.getVehicleType()); |
| | | if (exactMatchingRule!=null) { |
| | | //应收数据 |
| | | pendingSettlementBusiness.setIsIncomeMatched(1); |
| | | pendingSettlementBusiness.setEstimatedTotalIncome(exactMatchingRule.getFreight()); |
| | | pendingSettlementBusiness.setCreateTime(date); |
| | | EstimatedReceivable estimatedReceivable = new EstimatedReceivable(); |
| | |
| | | } |
| | | ReceivableLineTruckPriceRule exactMatchingRule2 = ExactPricingRuleMatcher.findExactMatchingRule(payableLineTruckPriceRules, pendingSettlementBusiness.getCarrierName(), pendingSettlementBusiness.getDepartureLocation(), pendingSettlementBusiness.getArrivalLocation(), pendingSettlementBusiness.getVehicleType()); |
| | | if (exactMatchingRule2!=null) { |
| | | pendingSettlementBusiness.setIsCostMatched(1); |
| | | pendingSettlementBusiness.setEstimatedTotalCost(exactMatchingRule2.getFreight()); |
| | | pendingSettlementBusiness.setCreateTime(date); |
| | | |