From 3e92f719f6bf0fd99b4e7100229be1b819dd991b Mon Sep 17 00:00:00 2001 From: Akash Shah Date: Mon, 31 Dec 2018 22:27:41 -0500 Subject: [PATCH] Fixed Some Defects, has been tracked in Defects file --- .../src/app/app-box/app-box.component.ts | 1 + AstuteClient2/src/app/app-routing.module.ts | 1 + .../src/app/customer/customer.component.html | 4 +- .../invoice-payment.component.html | 120 ++--- .../invoice-payment.component.ts | 12 +- .../src/app/invoice/invoice.component.html | 486 +++++++++--------- .../src/app/invoice/invoice.component.ts | 4 +- .../sales-order/sales-order.component.html | 10 +- .../app/sales-order/sales-order.component.ts | 16 +- .../src/app/services/astute-client-service.ts | 2 +- 10 files changed, 333 insertions(+), 323 deletions(-) diff --git a/AstuteClient2/src/app/app-box/app-box.component.ts b/AstuteClient2/src/app/app-box/app-box.component.ts index db65c33..6a1aa0f 100644 --- a/AstuteClient2/src/app/app-box/app-box.component.ts +++ b/AstuteClient2/src/app/app-box/app-box.component.ts @@ -22,6 +22,7 @@ export class AppBoxComponent implements OnInit { return this.color; } else { const clr = this.padStart(Math.floor((Math.random() * 16777215)).toString(16), 6, '0'); + console.log (clr); return '#' + clr; } } diff --git a/AstuteClient2/src/app/app-routing.module.ts b/AstuteClient2/src/app/app-routing.module.ts index b24699f..41f605c 100644 --- a/AstuteClient2/src/app/app-routing.module.ts +++ b/AstuteClient2/src/app/app-routing.module.ts @@ -11,6 +11,7 @@ import {LoginComponent} from './login/login.component'; const routes: Routes = [ { path: '', redirectTo: 'login', pathMatch: 'full'}, + { path: 'home', redirectTo: 'homepage', pathMatch: 'full'}, { path: 'homepage', component: HomepageComponent }, { path: 'customer', component: CustomerComponent }, { path: 'sales-order', component: SalesOrderComponent }, diff --git a/AstuteClient2/src/app/customer/customer.component.html b/AstuteClient2/src/app/customer/customer.component.html index 712e442..bbe01d5 100644 --- a/AstuteClient2/src/app/customer/customer.component.html +++ b/AstuteClient2/src/app/customer/customer.component.html @@ -125,7 +125,7 @@ - Fax + Fax* @@ -137,7 +137,7 @@ - + + @@ -126,7 +129,6 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Original Contract Amount +
{{chosenPo.contractAmt | currency}}
+
  
Net Changes by Change Orders
{{0 | currency}}
  
Total Contract Amount
{{chosenPo.contractAmt | currency}}
  
Previously Billed
{{chosenPo.previouslyBilledAmount | currency}}
  
Balance to be Billed
{{(chosenPo.contractAmt - chosenPo.previouslyBilledAmount - newBillAmt) | currency}}
Total due this invoice{{newBillAmt | currency}}
+ + + + + + + + diff --git a/AstuteClient2/src/app/invoice/invoice.component.ts b/AstuteClient2/src/app/invoice/invoice.component.ts index 5a586e9..b9eecc5 100644 --- a/AstuteClient2/src/app/invoice/invoice.component.ts +++ b/AstuteClient2/src/app/invoice/invoice.component.ts @@ -49,7 +49,7 @@ export class InvoiceComponent implements OnInit { // EVENTS - add event callback handlers onRowClicked: (event) => { - this.getSelectedRows() + this.getSelectedRows(); }, onColumnResized: function (event) { console.log('a column was resized'); @@ -221,7 +221,6 @@ export class InvoiceComponent implements OnInit { this.selectedBillAmt = tot; } - assignActity(): void { window.open('/invoice-gen'); } @@ -288,6 +287,7 @@ export class InvoiceComponent implements OnInit { close(content) { content.close(); + // this.newInDetails = []; } getCurrDate() { diff --git a/AstuteClient2/src/app/sales-order/sales-order.component.html b/AstuteClient2/src/app/sales-order/sales-order.component.html index 185bb4b..0171e5e 100644 --- a/AstuteClient2/src/app/sales-order/sales-order.component.html +++ b/AstuteClient2/src/app/sales-order/sales-order.component.html @@ -86,8 +86,8 @@ Description Rate Type Service Type - Qty - Rate + Qty(#) + Rate($) @@ -282,8 +282,8 @@ Description Rate Type Service Type - Qty - Rate + Qty(#) + Rate($) @@ -358,7 +358,7 @@