deadline toegevoegd

This commit is contained in:
2024-11-08 15:43:24 +01:00
parent 013eb15d04
commit a8dfcfae4c
5 changed files with 62 additions and 30 deletions
+6 -2
View File
@@ -14,6 +14,7 @@ $( function () {
offername : ko.observable(),
startdate : ko.observable(),
acceptance_chance: ko.observable(),
deadline : ko.observable(),
accepteddate : ko.observable(),
rejectdate : ko.observable(),
customer_id : ko.observable(),
@@ -64,6 +65,7 @@ $( function () {
costs : vm.costs(),
startdate : vm.startdate(),
acceptance_chance: vm.acceptance_chance(),
deadline : vm.deadline(),
accepteddate : vm.accepteddate(),
rejectdate : vm.rejectdate(),
}
@@ -120,6 +122,7 @@ $( function () {
},
setOffer: function ( offer, projectID, customerID, hasProject ) {
console.log( 'INSIDE SETOFFER', offer );
var vm = dbo.editOfferModal;
vm.hasProject( hasProject );
@@ -138,7 +141,8 @@ $( function () {
vm.offernumber( offer.offernumber || null );
vm.startdate( offer.startdate || null );
vm.acceptance_chance( offer.acceptance_chance || 0 );
vm.accepteddate( offer.accepteddate || null );
vm.deadline( offer.deadline || null );
vm.accepteddate( offer.accepteddate || null );
vm.rejectdate( offer.rejectdate || null );
vm.own_revenue( offer.own_revenue || 0 );
vm.other_revenue( offer.other_revenue || 0 );
@@ -219,4 +223,4 @@ $( function () {
ko.applyBindings( dbo.editOfferModal, document.getElementById( 'offer-modal' ) );
} );
} );
+1
View File
@@ -126,6 +126,7 @@ dbo.offersService = {
this.projectNumber = data.project ? data.project.projectnumber : null;
this.customerName = data.customer ? data.customer.name : null;
this.customer_id = data.customer_id;
this.deadline = data.deadline ? dbo.helpers.mysql2date( data.deadline ) : null
this.startdate = data.startdate ? dbo.helpers.mysql2date( data.startdate ) : null;
this.rejectdate = data.rejectdate ? dbo.helpers.mysql2date( data.rejectdate ) : null;
this.accepteddate = data.accepteddate ? dbo.helpers.mysql2date( data.accepteddate ) : null;