Pular para o conteúdo principal

Amplia Reg command: fill-order-transactions

Name​

fill-order-transactions - Fills in the cost transaction history of older orders

Syntax​

dotnet Lacuna.AmpliaRegNg.Site.dll [settings] -- fill-order-transactions [options]

Or, on Docker:

docker run -i lacunasoftware/ampliareg:x.y.z [settings] -- fill-order-transactions [options]
info

Replace x.y.z above with the desired version

The settings arguments are additional settings to overwrite settings from configuration files and environment variables, for instance --Section1:Name1=value1 --Section2:Name2=value2.

Options:

  • --batchsize <batch-size>: number of orders to process per batch. Default: 100
  • --logfrequency <log-frequency>: how often, in number of processed orders, progress is written to the log. A value less than or equal to zero turns this log off. Default: 5

Description​

The fill-order-transactions command rebuilds, from each order's event trail, the transactions of the per-order cost control report (introduced in version 7.0.0) for orders that already existed before that control started recording transactions in real time.

For each order, the command looks for historical events (SMS/email sending, DataValid/Serpro/Acertpix queries, liveness, PSBio, etc.) that don't have a matching cost transaction yet, and creates the missing transactions with the original date of the event.

info

This command is optional: orders created, or with new events, from version 7.0.0 on already have their cost transactions recorded automatically. Run this command only if you want the cost report to also reflect the history of orders older than that version.

Before processing, the command shows the number of orders found and asks for confirmation (Y) before going ahead, since the action cannot be undone.

See also​

View as Markdown