Compare commits

..
1 Commits
Author SHA1 Message Date
Raphael Michel 250a9d9282 Order changes: Log more information about taxes 2026-10-03 09:52:35 +02:00
2 changed files with 10 additions and 12 deletions
+10 -2
View File
@@ -2474,7 +2474,11 @@ class OrderChangeManager:
self.order.log_action('pretix.event.order.changed.feevalue', user=self.user, auth=self.auth, data={
'fee': fee.pk,
'old_price': fee.value,
'new_price': op.value.gross
'new_price': op.value.gross,
'old_tax_rate': fee.tax_rate,
'new_tax_rate': op.value.tax,
'old_tax_value': fee.tax_value,
'new_tax_value': op.value.rate,
})
fee.value = op.value.gross
fee._calculate_tax()
@@ -2486,7 +2490,11 @@ class OrderChangeManager:
'positionid': position.positionid,
'old_price': position.price,
'addon_to': position.addon_to_id,
'new_price': op.price.gross
'new_price': op.price.gross,
'old_tax_rate': position.tax_rate,
'new_tax_rate': op.price.tax,
'old_tax_value': position.tax_value,
'new_tax_value': op.price.rate,
})
position.price = op.price.gross
position.price_includes_rounding_correction = Decimal("0.00")
@@ -117,16 +117,6 @@ input[type=number]::-webkit-outer-spin-button {
border: transparent;
}
.btn.disabled, .btn[disabled], fieldset[disabled] .btn {
box-shadow: 0px 0px 0px 1px #ccc inset, inset 0 1px 3px 0 #d9d9d9;
background: #eee;
opacity: 0.7;
}
.btn-link.disabled, .btn-link[disabled], fieldset[disabled] .btn-link {
box-shadow: none;
background: none;
}
.btn-group-flex { display: flex; }
.btn-group-flex > .btn { flex: 1; }