This commit is contained in:
Sergiotarxz 2024-11-12 23:55:31 +01:00
parent 5e5b9cf721
commit 67deb962bc
2 changed files with 7 additions and 2 deletions

View File

@ -727,8 +727,8 @@ sub _on_receive_price($self) {
my $price_label = Gtk4::Label->new(undef);
$price_label->set_markup("<big>$price€</big>");
$box->append($price_label);
$box->append($starting_price_label);
if ( $discount > 2 ) {
if ( defined $discount && $discount > 2 ) {
$box->append($starting_price_label);
$box->append($discount_label);
}
$window_price_discount->set_child($box);

View File

@ -30,6 +30,11 @@
<releases>
<release version="v1.0.13" date="2024-11-12">
<description>
<p>Make discount to show the previous price</p>
</description>
</release>
<release version="v1.0.12" date="2024-11-11">
<description>
<p>Make more prominent affiliated printers and supplies and implementing discounts</p>