forked from lajayuhniyarsyah/OpenPrint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
arsummary.php
107 lines (104 loc) · 3.01 KB
/
arsummary.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?php
use yii\helpers\Url;
use yii\db\connection;
use yii\helpers\ArrayHelper;
use yii\helpers\BaseHtml;
use yii\helpers\BaseUrl;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\web\JsExpression;
use yii\jui;
use yii\web\View;
use yii\db\Command;
use yii\db\Query;
use app\models\ResPartner;
use kartik\widgets\Select2;
use kartik\widgets\DatePicker;
use miloschuman\highcharts\Highcharts;
?>
<?php
$url = \yii\helpers\Url::to(['customerlist']);
$initScript = <<< SCRIPT
function (element, callback) {
var id=\$(element).val();
if (id !== "") {
\$.ajax("{$url}?id=" + id, {
dataType: "json"
}).done(function(data) { callback(data.results);});
}
}
SCRIPT;
?>
<div class="oe_view_manager oe_view_manager_current">
<div class="oe_view_manager_header">
<h3 class="judul">
Accounting Report
</h3>
<div class="oe_form">
<header></header>
</div>
<div class="oe_form_sheetbg">
<div class="oe_form_sheet oe_form_sheet_width">
<div style="width:100%; float:left;">
<div class="subjudul">AGED RECEIVABLES SUMMARY</div>
<a data-pjax="0" title="Reset Report Transaksi PerAccount" href="<?php echo \yii\helpers\Url::to(['report-accounting/arsummary']); ?>" class="btn btn-default right" style="margin-right:10px;"><i class="glyphicon glyphicon-repeat"></i></a>
<br/>
<br/>
</div>
<div style="clear:both"></div>
<div id="arsummary">
<?php
$form = ActiveForm::begin([
'id'=>'ArSummaryForm',
'action'=>[''],
'options' => [
'target' => '_blank'
]
,
'method'=>'get',
]);
?>
<?php
echo $form->field($model, 'partner')->widget(Select2::classname(), [
'options' => ['placeholder' => 'All Customer ...'],
'pluginOptions' => [
'tags'=>true,
'allowClear' => true,
'minimumInputLength' => 2,
'ajax' => [
'url' => $url,
'dataType' => 'json',
'data' => new JsExpression('function(term,page) { return {search:term}; }'),
'results' => new JsExpression('function(data,page) { return {results:data.results}; }'),
],
'initSelection' => new JsExpression($initScript)
],
]);
?>
<br/>
<?=DatePicker::widget([
'model' => $model,
'attribute' => 'date_from',
// 'attribute2' => 'date_to',
'options' => ['placeholder' => 'Start date'],
// 'options2' => ['placeholder' => 'End date'],
// 'type' => DatePicker::TYPE_RANGE,
'form' => $form,
'pluginOptions' => [
'format' => 'yyyy-MM-dd',
// 'format' => 'dd-MM-yyyy',
'autoclose' => true,
'startDate'=>'01/07/2014',
],
'convertFormat'=>true,
]);?>
<div class="form-group">
<br/>
<?= Html::submitButton('Search', ['class' =>'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
<div style="clear:both"></div>
</div>
</div>
</div>