Punkte: Dezimalpunkte in Einmalprodukten, Homeparty und Shop-API nicht mehr abschneiden
Produkte mit 7,5 Punkten wurden an drei Stellen zu ganzen Zahlen: user_abo_one_time_items (PHP-Cast int, 7,5 -> 7), homeparty_user_order_items (MySQL rundete auf 8) und shopping_collect_orders (Summe der Shop-API). Die Migration zieht die drei Spalten auf DECIMAL(10,2) nach (Nachtrag zu 2026_01_22), Cast und Abo-Snapshot rechnen mit float. points:report-decimal-diff wertet die Differenzen je Berater und Monat aus (nur lesend), points:repair-decimal korrigiert den laufenden Monat und zieht die Monatssummen nach. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
e009b11259
commit
a21bebc932
15 changed files with 1539 additions and 9 deletions
|
|
@ -29,7 +29,7 @@ use Illuminate\Support\Carbon;
|
|||
* @property float|null $tax
|
||||
* @property float|null $price_vk_net
|
||||
* @property float|null $discount
|
||||
* @property int|null $points
|
||||
* @property float|null $points
|
||||
* @property int $status
|
||||
* @property-read Product $product
|
||||
* @property-read UserAbo $user_abo
|
||||
|
|
@ -54,7 +54,7 @@ class UserAboOneTimeItem extends Model
|
|||
'tax' => 'float',
|
||||
'price_vk_net' => 'float',
|
||||
'discount' => 'float',
|
||||
'points' => 'int',
|
||||
'points' => 'float',
|
||||
'status' => 'int',
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue