单据止付是 应付金额未负数时 大写金额赋值的时候进行处理
This commit is contained in:
		
							parent
							
								
									0733684302
								
							
						
					
					
						commit
						39b17b94cf
					
				|  | @ -128,8 +128,12 @@ public class N_F3_SAVE extends N_BASE_ACTION { | |||
|     private static final String ZERO_YUAN = "零元整"; | ||||
| 
 | ||||
|     public static String toChineseAmount(BigDecimal number) { | ||||
|         if (number == null || number.compareTo(BigDecimal.ZERO) < 0) { | ||||
|             throw new IllegalArgumentException("请输入非负数字"); | ||||
| //        if (number == null || number.compareTo(BigDecimal.ZERO) < 0) { | ||||
| //            throw new IllegalArgumentException("请输入非负数字"); | ||||
| //        } | ||||
|         boolean isNegative = number.compareTo(BigDecimal.ZERO) < 0; | ||||
|         if (isNegative) { | ||||
|             number = number.abs(); // 转为正数 | ||||
|         } | ||||
| 
 | ||||
|         // 将数字分为整数部分和小数部分 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue