Skip to content

Commit

Permalink
Merge pull request #444 from maestrano/release/v1.6.6
Browse files Browse the repository at this point in the history
Release - v1.6.6
  • Loading branch information
cesar-tonnoir authored Nov 16, 2017
2 parents e6dd52d + c4ddfd9 commit f2c8409
Show file tree
Hide file tree
Showing 9 changed files with 884 additions and 850 deletions.
10 changes: 10 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Impac! Frontend Changelog

### v1.6.6 | 2017 - Week 46

#### Adds
- [IMPAC-616] Stack invoices and bills on the cash projection widget

#### Dependencies
- Finance Bolt v1.4.0 - This is a soft dependency: transactions won't be stacked if older versions are used, but the change is backward-compatible

-------------------------------------------------------------

### v1.6.5 | 2017 - Week 45

#### Adds
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "impac-angular",
"description": "Impac! Front-End Library",
"version": "1.6.5",
"version": "1.6.6",
"license": "Copyright 2017 Maestrano Pty Ltd",
"repository": {
"type": "git",
Expand Down
262 changes: 131 additions & 131 deletions dist/impac-angular.css

Large diffs are not rendered by default.

1,319 changes: 667 additions & 652 deletions dist/impac-angular.js

Large diffs are not rendered by default.

110 changes: 55 additions & 55 deletions dist/impac-angular.less
Original file line number Diff line number Diff line change
Expand Up @@ -2644,17 +2644,6 @@ dashboard-templates-selector {
.overlay, .title, .btn, .example { display: none; }
}

.analytics common-delete-widget {
.widget-popup();
.message {
.loader i.fa.fa-spinner {
font-size: 26px;
}
p { padding: 0px 10px; }
button.btn { margin-top: 20px; }
}
}

#transactions-add {
.widget-popup();
.message {
Expand Down Expand Up @@ -2745,13 +2734,27 @@ dashboard-templates-selector {
}
}

.analytics common-delete-widget {
.widget-popup();
.message {
.loader i.fa.fa-spinner {
font-size: 26px;
}
p { padding: 0px 10px; }
button.btn { margin-top: 20px; }
}
}

.analytics .dashboard-settings.currency {
text-align: right;
select {
margin-top: 4px;
}
}

.analytics .dashboard-settings.pdf-mode {
}

.analytics .dashboard-settings.sync-apps {
.show-status {
margin-right: 5px;
Expand Down Expand Up @@ -2858,24 +2861,9 @@ dashboard-templates-selector {
.fa.success { color: @flurogreen; }
}

.analytics .dashboard-settings.pdf-mode {
}

.analytics .widget-item .content.accounts-accounting-values {
// Nothing particular yet for this template...
}
.analytics .widget-item .content.accounts-assets-summary {
.legend {
text-align: left;
max-height: 115px;

.title {
text-align: center;
border-bottom: dashed 1px @impac-widget-borders-color;
}
}
}

.analytics .widget-item .content.accounts-assets-liability-summary {
.param-selector {
text-align: center;
Expand All @@ -2897,6 +2885,18 @@ dashboard-templates-selector {
}
}

.analytics .widget-item .content.accounts-assets-summary {
.legend {
text-align: left;
max-height: 115px;

.title {
text-align: center;
border-bottom: dashed 1px @impac-widget-borders-color;
}
}
}

.analytics .widget-item .content.accounts-balance {
h3 {
.left-thin(30px);
Expand Down Expand Up @@ -3047,6 +3047,35 @@ dashboard-templates-selector {
}
}

.analytics .widget-item .content.accounts-custom-calculation {
h3 {
margin-top: 85px;
text-align: center;
font-weight: bold;
}

.price {
.center-bold(75px);
}

.legend {
max-height: 125px;
}
}

.analytics.modal-custom-calculation {
margin: 0px;
padding: 0px;
}

.analytics.modal-custom-calculation .modal-body {
.edit {
.edit-panel-style();
padding: 5px;
overflow: visible;
}
}

.analytics .widget-item .content.accounts-comparison {
.tall-widget();

Expand Down Expand Up @@ -3112,35 +3141,6 @@ dashboard-templates-selector {
}
}

.analytics .widget-item .content.accounts-custom-calculation {
h3 {
margin-top: 85px;
text-align: center;
font-weight: bold;
}

.price {
.center-bold(75px);
}

.legend {
max-height: 125px;
}
}

.analytics.modal-custom-calculation {
margin: 0px;
padding: 0px;
}

.analytics.modal-custom-calculation .modal-body {
.edit {
.edit-panel-style();
padding: 5px;
overflow: visible;
}
}

.analytics .widget-item .content.accounts-detailed-classifications {
.tall-widget();
.widget-lines-container {
Expand Down
2 changes: 1 addition & 1 deletion dist/impac-angular.min.css

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions dist/impac-angular.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "impac-angular",
"version": "1.6.5",
"version": "1.6.6",
"author": {
"name": "Xaun Lopez",
"email": "[email protected]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ module.controller('WidgetAccountsCashProjectionCtrl', ($scope, $q, $filter, $tim
# Used by onZoom callback
updateLocked = false
zoomMetadata = {}
# Stack the invoices and bills based on their age
w.metadata.ranges = ['-60d', '-30d']

# Timestamps stored in the back-end are in UTC => the filter on the date must be UTC too
dateFilter = (timestamp) ->
Expand Down Expand Up @@ -127,7 +129,7 @@ module.controller('WidgetAccountsCashProjectionCtrl', ($scope, $q, $filter, $tim
# Sets the transactions list resources type and displays it
onClickBar = (event) ->
series = this
resources = switch(series.name)
resources = switch(series.userOptions.stack)
when 'Payables'
'bills'
when 'Receivables'
Expand Down Expand Up @@ -159,6 +161,12 @@ module.controller('WidgetAccountsCashProjectionCtrl', ($scope, $q, $filter, $tim
ImpacWidgetsSvc.update(w, { metadata: zoomMetadata }, false).finally(-> updateLocked = false)
, 1000

onClickLegend = ->
series = this
for s in $scope.chart.hc.series
continue if s.userOptions.linkedTo != series.name
if series.visible then s.hide() else s.show()

# == Widget =====================================================================================
# Executed after the widget content is retrieved from the API
w.initContext = ->
Expand Down Expand Up @@ -196,6 +204,7 @@ module.controller('WidgetAccountsCashProjectionCtrl', ($scope, $q, $filter, $tim
# Add events callbacks to chart object
$scope.chart.addCustomLegend(legendFormatter)
$scope.chart.addSeriesEvent('click', onClickBar)
$scope.chart.addSeriesEvent('legendItemClick', onClickLegend)

# Notifies parent element that the chart is ready to be displayed
$scope.chartDeferred.notify($scope.chart)
Expand Down

0 comments on commit f2c8409

Please sign in to comment.