File tree 4 files changed +48
-44
lines changed
src/Client/Logistics.OfficeApp/src/app
pages/accounting/list-invoices
4 files changed +48
-44
lines changed Original file line number Diff line number Diff line change 63
63
< p-overlayPanel #accountingPanel >
64
64
@for (item of accountingMenuItems[0].items; track item.label) {
65
65
@if (!item.separator) {
66
- < p-button styleClass ="p-button-secondary "
67
- [label] ="item.label "
68
- (click) ="item?.command({}) ">
69
- </ p-button >
66
+ < div class ="p-1 ">
67
+ < p-button severity ="secondary "
68
+ [text] ="true "
69
+ [label] ="item.label "
70
+ (click) ="item?.command({}) ">
71
+ </ p-button >
72
+ </ div >
70
73
}
71
74
}
72
75
</ p-overlayPanel >
102
105
< p-overlayPanel #profilePanel >
103
106
@for (item of profileMenuItems[0].items; track item.label) {
104
107
@if (!item.separator) {
105
- < p-button styleClass ="p-button-secondary "
106
- [label] ="item.label "
107
- (click) ="item?.command({}) ">
108
- </ p-button >
108
+ < div class ="p-1 ">
109
+ < p-button severity ="secondary "
110
+ [text] ="true "
111
+ [label] ="item.label "
112
+ (click) ="item?.command({}) ">
113
+ </ p-button >
114
+ </ div >
109
115
}
110
116
}
111
117
</ p-overlayPanel >
Original file line number Diff line number Diff line change 28
28
align-items : center ;
29
29
}
30
30
31
- :host ::ng-deep .p-panelmenu-header-content {
32
- background-color : transparent ;
33
- }
34
-
35
- :host ::ng-deep .p-panelmenu-content {
36
- background-color : transparent ;
37
- }
38
-
39
- :host ::ng-deep .p-menuitem-link {
40
- text-decoration : none ;
41
- }
42
-
43
- :host ::ng-deep .p-panelmenu-header chevronrighticon {
44
- order : 2 ;
45
- }
46
-
47
- :host ::ng-deep .p-panelmenu-header chevrondownicon {
48
- order : 2 ;
49
- }
50
-
51
- :host ::ng-deep .p-panelmenu-header .p-menuitem-text {
52
- order : 1 ;
31
+ :host ::ng-deep {
32
+ .p-panelmenu-header-content {
33
+ background-color : transparent ;
34
+ }
35
+
36
+ .p-menuitem-link {
37
+ text-decoration : none ;
38
+ }
39
+
40
+ .p-panelmenu-header chevronrighticon {
41
+ order : 2 ;
42
+ }
43
+
44
+ .p-panelmenu-content {
45
+ background-color : transparent ;
46
+ }
47
+
48
+ .p-panelmenu-header chevrondownicon {
49
+ order : 2 ;
50
+ }
51
+
52
+ .p-panelmenu-header .p-menuitem-text {
53
+ order : 1 ;
54
+ }
53
55
}
Original file line number Diff line number Diff line change @@ -71,15 +71,15 @@ export class SidebarComponent implements OnInit {
71
71
items : [
72
72
{
73
73
label : 'Payrolls' ,
74
- command : ( ) => router . navigateByUrl ( '/accounting/payrolls' ) ,
74
+ routerLink : '/accounting/payrolls' ,
75
75
} ,
76
76
{
77
77
label : 'Payments' ,
78
- command : ( ) => router . navigateByUrl ( '/accounting/payments' ) ,
78
+ routerLink : '/accounting/payments' ,
79
79
} ,
80
80
{
81
81
label : 'Invoices' ,
82
- command : ( ) => router . navigateByUrl ( '/accounting/invoices' ) ,
82
+ routerLink : '/accounting/invoices' ,
83
83
} ,
84
84
] ,
85
85
} ,
Original file line number Diff line number Diff line change @@ -32,10 +32,6 @@ <h1>Invoices for the past 90 days</h1>
32
32
Payment Amount
33
33
< p-sortIcon field ="paymentAmount "> </ p-sortIcon >
34
34
</ th >
35
- < th pSortableColumn ="paymentStatus ">
36
- Payment Status
37
- < p-sortIcon field ="paymentStatus "> </ p-sortIcon >
38
- </ th >
39
35
< th pSortableColumn ="createdDate ">
40
36
Invoice Date
41
37
< p-sortIcon field ="createdDate "> </ p-sortIcon >
@@ -44,24 +40,24 @@ <h1>Invoices for the past 90 days</h1>
44
40
Payment Date
45
41
< p-sortIcon field ="paymentDate "> </ p-sortIcon >
46
42
</ th >
43
+ < th pSortableColumn ="paymentStatus ">
44
+ Payment Status
45
+ < p-sortIcon field ="paymentStatus "> </ p-sortIcon >
46
+ </ th >
47
47
< th > Action</ th >
48
48
</ tr >
49
49
</ ng-template >
50
50
51
51
< ng-template pTemplate ="body " let-invoice >
52
52
< tr >
53
- < td >
54
- < a [routerLink] ="['/loads/edit', invoice.loadId] ">
55
- {{invoice.loadRef}}
56
- </ a >
57
- </ td >
53
+ < td > {{invoice.loadRef}}</ td >
58
54
< td > {{invoice.customer.name}}</ td >
59
55
< td > {{invoice.payment.amount | currency}}</ td >
56
+ < td > {{invoice.createdDate | date:'mediumDate'}}</ td >
57
+ < td > {{invoice.payment.paymentDate | date:'mediumDate'}}</ td >
60
58
< td >
61
59
< app-payment-status-tag [paymentStatus] ="invoice.payment.status "> </ app-payment-status-tag >
62
60
</ td >
63
- < td > {{invoice.createdDate | date:'mediumDate'}}</ td >
64
- < td > {{invoice.payment.paymentDate | date:'mediumDate'}}</ td >
65
61
< td >
66
62
@if (invoice.payment.status === paymentStatus.Pending) {
67
63
< p-button
You can’t perform that action at this time.
0 commit comments