From 38494f51a8d4f96c8c00a0e76f6d0f7ddcad02ee Mon Sep 17 00:00:00 2001 From: Felix Kleinschmidt Date: Tue, 2 Aug 2022 06:49:30 -0200 Subject: [PATCH] CashBookEntry_CreateFromData: make StartDate and EndDate optional --- lib/ruconomic/api/cash_book_entry.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ruconomic/api/cash_book_entry.rb b/lib/ruconomic/api/cash_book_entry.rb index bc2cfdc..4639c5f 100644 --- a/lib/ruconomic/api/cash_book_entry.rb +++ b/lib/ruconomic/api/cash_book_entry.rb @@ -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