feat: enhance receipt alias management with global scope support and update validation
Test Suite / backend-pr-quick (push) Has been skipped
Test Suite / quick-import-pr-quick (push) Has been skipped
Test Suite / backend-full (push) Successful in 50s
Test Suite / flutter-quality (push) Successful in 50s

This commit is contained in:
Nils-Johan Gynther
2026-05-12 22:20:48 +02:00
parent 4471e344eb
commit 4492d7aa1c
8 changed files with 164 additions and 10 deletions
@@ -424,10 +424,12 @@ class AdminRepository {
int id, {
String? receiptName,
int? productId,
bool? isGlobal,
}) {
final body = <String, dynamic>{
if (receiptName != null) 'receiptName': receiptName,
if (productId != null) 'productId': productId,
if (isGlobal != null) 'isGlobal': isGlobal,
};
return _patchVoid(ReceiptAliasApiPaths.update(id), body);