Batch Voucher Exports
- 1 mockups
- 2 mod-invoice/mod-invoice-storage
- 2.1 Schemas
- 2.1.1 invoice
- 2.1.2 voucher
- 2.1.3 adjustment
- 2.1.4 batch_voucher_export
- 2.1.5 batch_voucher
- 2.1.6 batched_voucher
- 2.1.7 batched_voucher_line
- 2.1.8 export_configuration
- 2.1.9 credentials
- 2.1.10 batch_group
- 2.2 APIs
- 2.2.1 batch-voucher-export-configurations
- 2.2.2 batch-voucher-exports
- 2.2.3 _timer
- 2.2.3.1 mod-invoice
- 2.2.3.2 mod-invoice-storage
- 2.3 Batch Voucher Generation
- 2.1 Schemas
- 3 edge-voucher (WIP)
- 3.1 APIs
- 3.1.1 edge-batch-vouchers
- 3.1 APIs
- 4 Stories
- 4.1 mod-invoice-storage
- 4.2 mod-invoice
- 4.3 edge-batch-voucher
- 5 Notes
mockups
https://drive.google.com/drive/folders/1DR0ownDKS14PxhCrHWy14TD8sJA1mnbK
mod-invoice/mod-invoice-storage
Schemas
invoice
Add the batchGroupId field.
Add enclosureNeeded field
NOTE: We'll need a UI story to add this to the various invoice forms/views
Property | Type | Default | Required | Notes |
|---|---|---|---|---|
|
| NA | Yes | UUID of the batchGroup (aka exportGroup) to associate with this invoice and corresponding voucher |
enclosureNeeded | boolean | false | No | Indicates that an enclosure is needed for the check - only if payment method is check. |
voucher
Add the batchGroupId field.
Remove the batchNumber field - no longer needed.
Copied over from invoice->batchGroupId
Property | Type | Default | Required | Notes |
|---|---|---|---|---|
|
| NA | Yes | UUID of the batchGroup (aka exportGroup) to associate with this invoice and corresponding voucher |
adjustment
add exportToAccounting
Property | Type | Default | Required | Notes |
|---|---|---|---|---|
|
| false | Yes | Whether or not to show this adjustment in batchedVoucherLines |
batch_voucher_export
This record describes an batch voucher export job - metadata about the process which generates and uploads the batch voucher
Property | Type | Default | Required | Notes |
|---|---|---|---|---|
|
| NA | No | UUID of this export - System generated if not specified. |
|
| Pending | Yes | enum: Pending, Generated, Uploaded, Error |
|
| NA | No | Field for capturing additional context of status, e.g. an error message |
|
| NA | Yes | UUID of the batch (aka exportGroup) |
|
| NA | Yes | This export is for all vouchers between start and end |
|
| NA | Yes | This export is for all vouchers between start and end |
|
| NA | No | UUID of the batch voucher if one exists yet |
|
| NA | No | System generated record metadata |
batch_voucher
XML and JSON schemas/bindings are needed for this.
Immutable.
Potentially quite large.
Stored as json, but XML and JSON schemas/bindings are needed for this.
XML schema should favor elements over attributes as seen in the abbreviated example below.
Property | Type | Default | Required | Notes |
|---|---|---|---|---|
|
| NA | N | UUID for the batch voucher - System generated if not provided. |
|
| NA | Y | lookup batchGroup→name using invoice.batchGroupId |
|
| NA | Y | from batch_voucher_export→start |
|
| NA | Y | from batch_voucher_export→end |
|
| NA | Y | System generated - when the batch voucher was generated |
|
| NA | Y | array of batch_voucher |
|
| NA | Y | total number of records in the array |
batched_voucher
Property | Type | Default | Required | Notes |
|---|---|---|---|---|
|
| NA | Y | from voucher → voucherNo |
|
| NA | Y | from voucher → invoiceId; dereference to invoice → vendorInvoiceNo |
|
| NA | Y | from voucher → invoiceId; dereference to invoice → folioInvoiceNo |
|
| NA | Y | from voucher → accountingCode |
|
| NA | Y | from voucher → voucherDate |
|
| NA | Y | enum. from voucher → type |
|
| NA | Y | enum. from voucher → status |
|
| NA | Y | from voucher → amount |
|
| NA | Y |
|
|
| NA | Y |
|
|
| NA | N |
|
|
| NA | N |
|
|
| NA | Y |
|
|
| NA | N |
|
|
| NA | N | Required if disbursementNumber is specified |
|
| NA | N |
|
|
| false | N | Indicates that an enclosure is needed for the check - only if payment method is check. |
|
| NA | Y |
|
batched_voucher_line
Property | Type | Default | Required | Notes |
|---|---|---|---|---|
|
| NA | Y | from voucher-line→externalAccountNumber |
|
| NA | Y | from voucher-line→amount |
|
| NA | Y | from voucher-line→ fundDistributions; dereferenced to fund → code |
|
| NA | N | need to see:
|
export_configuration
Configuration information for a voucher export - there's only one of these for a given batchGroup
Property | Type | Default | Required | Notes |
|---|---|---|---|---|
|
| NA | Yes | UUID of the configuration record - this is the batchGroupId that this configuration is associated with. - Foreign Key |
|
| 00:00 | No | The time of day to trigger an export if enableScheduledExport == true. Use pattern to restrict to HH:MM |
|
| NA | No | An array of weekdays (enum: Sunday, Monday, etc.) indicating which days to trigger exports on. If empty, indicates daily exports. Duplicates are not allowed. |
|
| false | No | Whether or not to enable scheduled batch voucher exports |
|
|