altibiz / ozds

OZDS
Other
0 stars 0 forks source link

altibiz integration #85

Closed HrvojeJuric closed 2 months ago

HrvojeJuric commented 2 months ago

Task

Add integration with AltiBiz ERP by adding in invoice tracking.

Fixes #15 Fixes #80

Description

Added a new project called Ozds.Messaging taking care of communication with other services such as AltiBiz through a service bus (rabbitmq in development, azure service bus in production).

This PR builds on top of another branch for invoice testing since the correctness of calculations for invoices are highly related to safe communication with AltiBiz.

Overhauled Ozds.Fake to support commands so that the CLI is a bit more intuitive for seeding, pushing and now faking AltiBiz.

Added in more safety guards for pushing measurements which was not intended to be part of this PR, but it was convenient.

Localization is now part of the Ozds.Business project as it was needed to localize invoice items before they get sent to AltiBiz.

Added NLog logging to a file because we have some big queries that get logged and it becomes reallly easy to lose track of things in a console.

Added some extra goodies for dealing with the repository in the justfile and added python and related tools for scripts that use pandas.

Testing

Added in invoice and calculation testing.

Also added AutoFixture and related tools and Bogus for faking calculations and invoices which helped a lot to test calculations more rigorously.

Documentation

No documentation was added but change on this topic is highly expected and it will be beneficial to wait until we have a clear view of how this process goes.