Fix input of RequestedDeliveryDate in order head. Error handling in Company.get
This commit is contained in:
parent
0330e7a4bf
commit
7288e88135
2 changed files with 10 additions and 4 deletions
|
|
@ -407,7 +407,9 @@ class Order(RawBaseModel):
|
|||
'adapters': {
|
||||
**{
|
||||
'OrdDatum': lambda ord_date, *_: ord_date.strftime("%Y-%m-%d"),
|
||||
'OrdBerLevDat': lambda ord_date, *_: ord_date.strftime("%Y-%m-%d"),
|
||||
'OrdBerLevDat': lambda deliv_date, *_: (
|
||||
deliv_date.strftime("%Y-%m-%d")
|
||||
if not isinstance(deliv_date, str) else deliv_date),
|
||||
},
|
||||
**RawBaseModel.__dict_args__['adapters']
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue