Commit 0b3dbc4d authored by Sandy's avatar Sandy

去掉负值冲账

parent 6231ba9d
No related merge requests found
......@@ -105,12 +105,14 @@
WS(weakSelf);
//赋值
kCanNotBeNil(self.viewModel.request.contract, @"请选择合同!");
NSDecimalNumber *limit = [CalculateHelper sub:@0 num2:self.topView.labelTodayTotal.text];
NSDecimalNumber *billTotal = [CalculateHelper decimalNumber:self.totalView.labelTotal.text];
if ([billTotal compare:limit] == NSOrderedAscending) {
[MBProgressHUD j_warningMessage:[NSString stringWithFormat:@"本单合计必须小于%@元", limit.stringValue]];
return;
}
//负值冲账校验
// NSDecimalNumber *limit = [CalculateHelper sub:@0 num2:self.topView.labelTodayTotal.text];
// NSDecimalNumber *billTotal = [CalculateHelper decimalNumber:self.totalView.labelTotal.text];
// if ([billTotal compare:limit] == NSOrderedAscending) {
// [MBProgressHUD j_warningMessage:[NSString stringWithFormat:@"本单合计必须大于%@元", limit.stringValue]];
// return;
// }
NSString *msg = [NSString stringWithFormat:@"销售日期:%@\n总金额: %@\n\n确认提交?",self.topView.textFieldDate.text, self.totalView.labelTotal.text];
[self alertTitle:@"温馨提示" msg:msg okAction:^(UIAlertAction * _Nullable action) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment