This commit is contained in:
Nweni
2017-06-12 18:15:19 +06:30
parent ddf85905ef
commit 7a3957181c
3 changed files with 10 additions and 5 deletions

View File

@@ -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';
}
});