At the initialisation of dialog init_dialog. Two API calls for get_import_history are being made for the same arguments.
Reason: One by one company_gstin, return_type, date_range, period are being set in sequence. When the fields till date_range are set, the condition results in false and it makes API call. After that period is being set so onchange of period results in calling the same API.
Originally posted by @karm1000 in #4131 (comment)
At the initialisation of dialog
init_dialog. Two API calls forget_import_historyare being made for the same arguments.Reason: One by one company_gstin, return_type, date_range, period are being set in sequence. When the fields till date_range are set, the condition results in
falseand it makes API call. After thatperiodis being set so onchange ofperiodresults in calling the same API.Originally posted by @karm1000 in #4131 (comment)