Skip to content

Commit

Permalink
CashBookEntry_CreateFromData: make StartDate and EndDate optional
Browse files Browse the repository at this point in the history
  • Loading branch information
absrd committed Aug 2, 2022
1 parent d370b76 commit 38494f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ruconomic/api/cash_book_entry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ def self.create_from_data(entry_data)
data.add_optional('BankPaymentCreditorId', entry_data.dig(:bank_payment_creditor_id))
data.add_optional('BankPaymentCreditorInvoiceId', entry_data.dig(:bank_payment_creditor_invoice_id))
data.add_handle('CapitaliseHandle', entry_data.dig(:capitalise_handle, :number))
data.add('StartDate', entry_data.dig(:start_date))
data.add('EndDate', entry_data.dig(:end_date))
data.add_optional('StartDate', entry_data.dig(:start_date))
data.add_optional('EndDate', entry_data.dig(:end_date))
data.add_handle('EmployeeHandle', entry_data.dig(:employee_handle, :number))
end
end
Expand Down

0 comments on commit 38494f5

Please sign in to comment.