update first bill

This commit is contained in:
Aung Myo
2018-07-23 12:05:45 +06:30
parent 1895936f38
commit eca3ee4637
2 changed files with 8 additions and 2 deletions

View File

@@ -936,6 +936,8 @@
confirmButtonText: "Yes, print it!",
closeOnConfirm: false
}, function (isConfirm) {
$('.confirm').off("click touchstart touchend");
$('.confirm').attr("disabled","disabled");
if (isConfirm) {
var sale_id = $('#sale_id').val();
var ajax_url = "/origami/sale/" + sale_id + "/first_bill";

View File

@@ -473,8 +473,8 @@
end
%>
</table>
<button class='btn bg-primary btn-block' id='add_invoice'> Add to existing invoice </button>
<% end %> -->
<button class='btn bg-primary btn-block' id='add_invoice'> Add to existing invoice </button>-->
<% end %>
<% if @sale_array.size > 1 %>
<br><br>
Pending Payment
@@ -1024,6 +1024,10 @@ $("#first_bill").on('click', function(){
confirmButtonText: "Yes, print it!",
closeOnConfirm: false
}, function (isConfirm) {
$('.confirm').off("click touchstart touchend");
$('.confirm').attr("disabled","disabled");
if (isConfirm) {
var sale_id = $('#sale_id').val();
var ajax_url = "/origami/sale/"+ sale_id + "/first_bill";