1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-18 07:52:23 +01:00

(bug) OpenAPI accounting gateway_object_id missing error

This commit is contained in:
Du Peng 2023-06-02 18:33:07 +02:00
parent 7cff0d6c39
commit 6c5b4d9595
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,7 @@
# Changelog Fab-manager
- Fix a bug: OpenAPI accounting gateway_object_id missing error
## v6.0.6 2023 May 4
- Fix a bug: invalid duration for machine/spaces reservations in statistics, when using slots of not 1 hour

View File

@ -175,8 +175,8 @@ class Invoice < PaymentDocument
if paid_by_card?
{
payment_mean: mean,
gateway_object_id: payment_gateway_object.gateway_object_id,
gateway_object_type: payment_gateway_object.gateway_object_type
gateway_object_id: payment_gateway_object&.gateway_object_id,
gateway_object_type: payment_gateway_object&.gateway_object_type
}
end
when :wallet