Everything works, or seems to. The package is now installable as
a regular python module through pip or whatever. Now our apps can assemble data objects to be converted into accuwage files.
This commit is contained in:
parent
6f5d29faab
commit
1a0f4183e7
1 changed files with 3 additions and 0 deletions
|
@ -140,4 +140,7 @@ def verify_record_order(records):
|
||||||
if len(filter(lambda x:isinstance(x, record.FinalRecord), records)) != 1:
|
if len(filter(lambda x:isinstance(x, record.FinalRecord), records)) != 1:
|
||||||
raise ValidationError("Incorrect number of FinalRecords")
|
raise ValidationError("Incorrect number of FinalRecords")
|
||||||
|
|
||||||
|
def verify_records(records):
|
||||||
|
verify_required_records(records)
|
||||||
|
verify_record_order(records)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue