| | |
| | | } |
| | | |
| | | if (platformSalesMap != null) { |
| | | BigDecimal feePlatform = s.getFeePlatform(); |
| | | BigDecimal feePlatformPack = s.getFeePlatformPack(); |
| | | BigDecimal feePlatformCheck = s.getFeePlatformCheck(); |
| | | BigDecimal feePlatformTransport = s.getFeePlatformTransport(); |
| | | BigDecimal feePlatform = getAmount(s.getFeePlatform()); |
| | | BigDecimal feePlatformPack = getAmount(s.getFeePlatformPack()); |
| | | BigDecimal feePlatformCheck = getAmount(s.getFeePlatformCheck()); |
| | | BigDecimal feePlatformTransport = getAmount(s.getFeePlatformTransport()); |
| | | |
| | | BigDecimal b = platformSalesMap.get(orderItemId); |
| | | if (b == null) { |
| | |
| | | } |
| | | } |
| | | |
| | | protected BigDecimal getAmount(BigDecimal amount){ |
| | | return amount == null ? new BigDecimal(0) : amount; |
| | | } |
| | | |
| | | protected void prepareSalesAmount(OrderSalesItem s |
| | | , Map<String, BigDecimal> supplierSalesMap |
| | | , Map<String, BigDecimal> partnerSalesMap |