mirror of
https://github.com/brain-tec/account_ebics.git
synced 2026-12-01 14:01:15 +00:00
[FIX] account_ebics - Wrap order number ZZZZ to A000
ZZZZ is accepted by the order number constraint, but the next number was computed as 0000, which the constraint then rejects, blocking H003 uploads. Wrap it to A000 like ZZZY already does.
This commit is contained in:
1 parent
1df4a1eb3b
commit
a08e06c410
1 file changed
+1
-1
@@ -188,7 +188,7 @@ class EbicsConfig(models.Model):
|
||||
o_list[-i] = chr(ord(c) + 1)
|
||||
break
|
||||
next_order_number = "".join(o_list)
|
||||
if next_order_number == "ZZZZ":
|
||||
if "ZZZZ" in (OrderID, next_order_number):
|
||||
next_order_number = "A000"
|
||||
self.order_number = next_order_number
|
||||
|
||||
|
||||
Reference in new issue
Block a user