invoice added new columns

This commit is contained in:
2019-04-30 19:07:18 +02:00
parent ecb2d3437c
commit ddea739199
5 changed files with 55 additions and 2 deletions
@@ -29,6 +29,8 @@ dbo.invoicereportInit = function () {
totalToInvoicingIncl : ko.observable(),
totalInvoicedOtherYears: ko.observable(),
totalInvoicedThisYear : ko.observable(),
totalPayment : ko.observable(),
totalToPay : ko.observable(),
invoicesTotal : ko.observable(),
needInvoice : ko.observable(),
forecastThisYear : ko.observable(),
@@ -111,6 +113,8 @@ dbo.invoicereportInit = function () {
vm.totalInvoicedOtherYears( 0 );
vm.totalInvoicedThisYear( 0 );
vm.invoicesTotal( 0 );
vm.totalPayment( 0 );
vm.totalToPay( 0 );
vm.needInvoice( 0 );
vm.forecastThisYear( 0 );
vm.forecastOtherYears( 0 );
@@ -134,6 +138,8 @@ dbo.invoicereportInit = function () {
vm.totalInvoicedOtherYears( vm.totalInvoicedOtherYears() + Number( p.totalInvoicedOtherYears.replace( '.', '' ) ) );
vm.totalInvoicedThisYear( vm.totalInvoicedThisYear() + Number( p.totalInvoicedThisYear.replace( '.', '' ) ) );
vm.invoicesTotal( vm.invoicesTotal() + Number( p.invoicesTotal.replace( '.', '' ) ) );
vm.totalPayment( vm.totalPayment() + Number( p.projectPayment.replace( '.', '' ) ) );
vm.totalToPay( vm.totalToPay() + Number( p.invoiceToPay.replace( '.', '' ) ) );
vm.needInvoice( vm.needInvoice() + Number( p.needInvoice.replace( '.', '' ) ) );
} );
@@ -142,6 +148,8 @@ dbo.invoicereportInit = function () {
vm.totalInvoicedOtherYears( dbo.helpers.thousandSeparator( vm.totalInvoicedOtherYears() ) );
vm.totalInvoicedThisYear( dbo.helpers.thousandSeparator( vm.totalInvoicedThisYear() ) );
vm.invoicesTotal( dbo.helpers.thousandSeparator( vm.invoicesTotal() ) );
vm.totalPayment( dbo.helpers.thousandSeparator( vm.totalPayment() ) );
vm.totalToPay( dbo.helpers.thousandSeparator( vm.totalToPay() ) );
vm.needInvoice( dbo.helpers.thousandSeparator( vm.needInvoice() ) );
},