File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -214,6 +214,9 @@ pub fn print_orders_table(orders_table: Vec<Event>) -> Result<String> {
214214 Cell :: new( "💳 Payment Method" )
215215 . add_attribute( Attribute :: Bold )
216216 . set_alignment( CellAlignment :: Center ) ,
217+ Cell :: new( "📊 Premium %" )
218+ . add_attribute( Attribute :: Bold )
219+ . set_alignment( CellAlignment :: Center ) ,
217220 Cell :: new( "📅 Created" )
218221 . add_attribute( Attribute :: Bold )
219222 . set_alignment( CellAlignment :: Center ) ,
@@ -270,6 +273,7 @@ pub fn print_orders_table(orders_table: Vec<Event>) -> Result<String> {
270273 } ,
271274 Cell :: new( single_order. payment_method. to_string( ) )
272275 . set_alignment( CellAlignment :: Center ) ,
276+ Cell :: new( single_order. premium. to_string( ) ) . set_alignment( CellAlignment :: Center ) ,
273277 Cell :: new(
274278 date. map( |d| d. format( "%Y-%m-%d %H:%M" ) . to_string( ) )
275279 . unwrap_or_else( || "Invalid date" . to_string( ) ) ,
You can’t perform that action at this time.
0 commit comments