update
This commit is contained in:
@@ -232,7 +232,12 @@ $( document ).ready(function() {
|
||||
url: "<%= origami_payment_cash_path %>",
|
||||
data: "cash="+ cash + "&sale_id=" + sale_id,
|
||||
success:function(result){
|
||||
alert("Thank you")
|
||||
if($('#balance').text() < 0){
|
||||
alert("Changed amount " + $('#balance').text() * (-1) )
|
||||
}else{
|
||||
alert("Thank you")
|
||||
}
|
||||
|
||||
window.location.href = '/origami';
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user