mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-07-27 15:17:09 -04:00
Fix payment summary refresh after edit (#3329)
This commit is contained in:
@@ -209,6 +209,11 @@ $(document).ready(function()
|
||||
{
|
||||
dialog_support.hide();
|
||||
table_support.handle_submit("<?php echo site_url($controller_name); ?>", response);
|
||||
|
||||
const params = $.param(table_support.query_params());
|
||||
$.get("<?php echo site_url($controller_name); ?>/search?" + params, function(response) {
|
||||
$("#payment_summary").html(response.payment_summary);
|
||||
}, 'json');
|
||||
},
|
||||
dataType: 'json'
|
||||
});
|
||||
|
||||
@@ -17,6 +17,15 @@ $(document).ready(function()
|
||||
|
||||
<?php $this->load->view('partial/bootstrap_tables_locale'); ?>
|
||||
|
||||
table_support.query_params = function()
|
||||
{
|
||||
return {
|
||||
start_date: start_date,
|
||||
end_date: end_date,
|
||||
filters: $("#filters").val() || [""]
|
||||
}
|
||||
};
|
||||
|
||||
table_support.init({
|
||||
resource: '<?php echo site_url($controller_name);?>',
|
||||
headers: <?php echo $table_headers; ?>,
|
||||
@@ -29,11 +38,7 @@ $(document).ready(function()
|
||||
}
|
||||
},
|
||||
queryParams: function() {
|
||||
return $.extend(arguments[0], {
|
||||
start_date: start_date,
|
||||
end_date: end_date,
|
||||
filters: $("#filters").val() || [""]
|
||||
});
|
||||
return $.extend(arguments[0], table_support.query_params());
|
||||
},
|
||||
columns: {
|
||||
'invoice': {
|
||||
|
||||
Reference in New Issue
Block a user