Skip to content

Commit 8fa2d2a

Browse files
authored
OPS-358: Split hg invoice (#90)
* refactored hg invoice * fixed * removed unnecessary adj creation * removed for regular adj
1 parent b8156b1 commit 8fa2d2a

File tree

5 files changed

+484
-414
lines changed

5 files changed

+484
-414
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
-ifndef(__hg_invoice__).
2+
-define(__hg_invoice__, true).
3+
4+
-record(st, {
5+
activity :: undefined | hg_invoice:activity(),
6+
invoice :: undefined | hg_invoice:invoice(),
7+
payments = [] :: [{hg_invoice:payment_id(), hg_invoice:payment_st()}],
8+
party :: undefined | hg_invoice:party()
9+
}).
10+
11+
-endif.

apps/hellgate/src/hellgate.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ get_api_child_spec(MachineHandlers, Opts) ->
7272
event_handler => {scoper_woody_event_handler, EventHandlerOpts},
7373
handlers => hg_machine:get_service_handlers(MachineHandlers, Opts) ++
7474
[
75-
construct_service_handler(invoicing, hg_invoice, Opts),
75+
construct_service_handler(invoicing, hg_invoice_handler, Opts),
7676
construct_service_handler(invoice_templating, hg_invoice_template, Opts),
7777
construct_service_handler(customer_management, hg_customer, Opts),
7878
construct_service_handler(recurrent_paytool, hg_recurrent_paytool, Opts),

0 commit comments

Comments
 (0)