]> git.ipfire.org Git - thirdparty/python-drafthorse.git/commitdiff
add: support for multiple bank accounts (#67)
authorjo47011 <jo47011@gmail.com>
Mon, 15 Sep 2025 07:52:24 +0000 (09:52 +0200)
committerGitHub <noreply@github.com>
Mon, 15 Sep 2025 07:52:24 +0000 (09:52 +0200)
drafthorse/models/trade.py

index 75dc56674d63e32e35d83dad763689df96c35a2c..8afa7f9c516876cccd4657e74c4be7646b1be52f 100644 (file)
@@ -196,7 +196,7 @@ class TradeSettlement(Element):
     invoice_currency: TaxApplicableTradeCurrencyExchange = Field(
         TaxApplicableTradeCurrencyExchange, profile=EXTENDED
     )
-    payment_means: PaymentMeans = Field(PaymentMeans)
+    payment_means: Container = MultiField(PaymentMeans, required=False, profile=EXTENDED)
     trade_tax: Container = MultiField(ApplicableTradeTax)
     period: BillingSpecifiedPeriod = Field(
         BillingSpecifiedPeriod, required=False, profile=BASIC