From 77325a02fd391ed6bd57ad3fbed7f89127be1e65 Mon Sep 17 00:00:00 2001 From: Akash Shah Date: Sat, 15 Sep 2018 22:23:15 -0400 Subject: [PATCH] added some files --- .../src/app/customer/customer.component.css | 10 + .../src/app/customer/customer.component.html | 4 +- .../src/app/invoice/invoice.component.css | 12 + .../src/app/invoice/invoice.component.html | 192 ++++- .../src/app/invoice/invoice.component.ts | 765 ++++++++++-------- .../app/modal-form/modal-form.component.css | 1 - .../app/sales-order/sales-order.component.css | 12 + .../sales-order/sales-order.component.html | 4 +- 8 files changed, 608 insertions(+), 392 deletions(-) diff --git a/AstuteClient2/src/app/customer/customer.component.css b/AstuteClient2/src/app/customer/customer.component.css index 8b13789..8fe4dc3 100644 --- a/AstuteClient2/src/app/customer/customer.component.css +++ b/AstuteClient2/src/app/customer/customer.component.css @@ -1 +1,11 @@ +::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */ + color: lightblue; +} +:-ms-input-placeholder { /* Internet Explorer 10-11 */ + color: lightblue; +} + +::-ms-input-placeholder { /* Microsoft Edge */ + color: lightblue; +} \ No newline at end of file diff --git a/AstuteClient2/src/app/customer/customer.component.html b/AstuteClient2/src/app/customer/customer.component.html index f651ad1..aec027a 100644 --- a/AstuteClient2/src/app/customer/customer.component.html +++ b/AstuteClient2/src/app/customer/customer.component.html @@ -100,7 +100,7 @@
- +
@@ -212,7 +212,7 @@
- +
diff --git a/AstuteClient2/src/app/invoice/invoice.component.css b/AstuteClient2/src/app/invoice/invoice.component.css index 2c5d1df..e0ac31e 100644 --- a/AstuteClient2/src/app/invoice/invoice.component.css +++ b/AstuteClient2/src/app/invoice/invoice.component.css @@ -12,3 +12,15 @@ .cell:focus { outline: none; } + +::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */ + color: lightblue; +} + +:-ms-input-placeholder { /* Internet Explorer 10-11 */ + color: lightblue; +} + +::-ms-input-placeholder { /* Microsoft Edge */ + color: lightblue; +} \ No newline at end of file diff --git a/AstuteClient2/src/app/invoice/invoice.component.html b/AstuteClient2/src/app/invoice/invoice.component.html index fef52cd..295a4f7 100644 --- a/AstuteClient2/src/app/invoice/invoice.component.html +++ b/AstuteClient2/src/app/invoice/invoice.component.html @@ -56,30 +56,106 @@ @@ -103,33 +179,66 @@ + (change)="onSelectedCellChange(i, 'desc', desc.value)" #desc> + (change)="onSelectedCellChange(i, 'fee', fee.value); updateSelectedBillAmt()" #fee> + [step]="inDet.remainingQty / 100" + (change)="onSelectedCellChange(i, 'qty', qty.value); updateSelectedBillAmt()" #qty> - + -

{{getPerc(fee.value * qty.value, inDet.remainingQty)}}%

+

{{getPerc(qty.value, inDet.remainingQty)}}%

- ${{fee.value * qty.value}} + [ngStyle]="{'width': getPerc(qty.value, inDet.remainingQty) + '%'}"> + {{qty.value}}
- ${{inDet.remainingQty - (fee.value * qty.value)}} + [ngStyle]="{'width': (100 - getPerc(qty.value, inDet.remainingQty)) + '%'}"> + {{inDet.remainingQty - (qty.value)}}
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -161,7 +270,7 @@ - + + +