Skip to content

Commit

Permalink
Merge pull request #242 from rayrayndwiga/master
Browse files Browse the repository at this point in the history
ps: fix timings in the reports
  • Loading branch information
dbca-asi authored Oct 27, 2017
2 parents 9d32e9b + 4eb70ef commit a52866d
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions ledger/payments/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ class Meta:
fields = (
'id',
'owner',
'voided',
'order_number',
'num_items',
'amount',
Expand Down
2 changes: 1 addition & 1 deletion ledger/payments/static/payments/js/payment.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ $(function(){
receivedPaymentsTable.ajax.reload();
}
function showRecordPayment(){
if (invoice_obj.payment_status != 'paid' && invoice_obj.payment_status != 'over_paid'){
if (invoice_obj.payment_status != 'paid' && invoice_obj.payment_status != 'over_paid' && !invoice_obj.voided){
if ($other_form.hasClass('hide')){
$other_form.removeClass('hide');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
<div class="tabs-panel" id="other">
<div class="row">
<div class="columns large-12">
<form id="other_form" class="{% if invoices.0.payment_status == 'paid' or invoices.0.payment_status == 'over_paid' %}hide{% endif %}">
<form id="other_form" class="{% if invoices.0.payment_status == 'paid' or invoices.0.payment_status == 'over_paid' or invoices.0.voided %}hide{% endif %}">
<h3> Record Payment</h3>
<label>
Amount
Expand Down
2 changes: 1 addition & 1 deletion parkstay/cron.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from parkstay.utils import oracle_integration

class UnpaidBookingsReportCronJob(CronJobBase):
RUN_AT_TIMES = ['05:30']
RUN_AT_TIMES = ['01:00']

schedule = Schedule(run_at_times=RUN_AT_TIMES)
code = 'parkstay.unpaid_bookings_report'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export default {
responsive: true,
serverSide:true,
processing:true,
searchDelay: 800,
ajax: {
"url": api_endpoints.bookings,
"dataSrc": 'results',
Expand Down
8 changes: 4 additions & 4 deletions parkstay/frontend/parkstay/src/components/reports/reports.vue
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,10 @@ export default {
if(vm.form.valid()){
var values = {
"system":"S019",
"start":(vm.region) ? vm.flatDateStartPicker.data("DateTimePicker").date().set({hour:0,minute:0,second:0,millisecond:0}).format('YYYY-MM-DD H:mm:ss'):vm.accountsDateStartPicker.data("DateTimePicker").date().set({hour:0,minute:0,second:0,millisecond:0}).format('YYYY-MM-DD H:mm:ss'),
"end":(vm.region) ? vm.flatDateEndPicker.data("DateTimePicker").date().set({hour:0,minute:0,second:0,millisecond:0}).format('YYYY-MM-DD H:mm:ss'):vm.accountsDateEndPicker.data("DateTimePicker").date().set({hour:0,minute:0,second:0,millisecond:0}).format('YYYY-MM-DD H:mm:ss'),
"banked_start":vm.flatDateStartPicker.data("DateTimePicker").date().set({hour:0,minute:0,second:0,millisecond:0}).format('YYYY-MM-DD H:mm:ss'),
"banked_end":vm.flatDateEndPicker.data("DateTimePicker").date().set({hour:0,minute:0,second:0,millisecond:0}).format('YYYY-MM-DD H:mm:ss'),
"start":(vm.region) ? vm.flatDateStartPicker.data("DateTimePicker").date().set({hour:23,minute:59,second:59,millisecond:0}).format('YYYY-MM-DD H:mm:ss'):vm.accountsDateStartPicker.data("DateTimePicker").date().set({hour:23,minute:59,second:59,millisecond:0}).format('YYYY-MM-DD H:mm:ss'),
"end":(vm.region) ? vm.flatDateEndPicker.data("DateTimePicker").date().set({hour:23,minute:59,second:59,millisecond:0}).format('YYYY-MM-DD H:mm:ss'):vm.accountsDateEndPicker.data("DateTimePicker").date().set({hour:23,minute:59,second:59,millisecond:0}).format('YYYY-MM-DD H:mm:ss'),
"banked_start":vm.flatDateStartPicker.data("DateTimePicker").date().set({hour:23,minute:59,second:59,millisecond:0}).format('YYYY-MM-DD H:mm:ss'),
"banked_end":vm.flatDateEndPicker.data("DateTimePicker").date().set({hour:23,minute:59,second:59,millisecond:0}).format('YYYY-MM-DD H:mm:ss'),
};
if(vm.region){
values.region = vm.region;
Expand Down
2 changes: 1 addition & 1 deletion parkstay/static/parkstay/js/parkstay.js

Large diffs are not rendered by default.

0 comments on commit a52866d

Please sign in to comment.