Skip to content

Commit

Permalink
fix: missing order refund status
Browse files Browse the repository at this point in the history
  • Loading branch information
Guiiix committed Jan 11, 2025
1 parent 19b7b2b commit 5baf8d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/psebpconnector/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def export_product(self, product_id: int):

def export_orders_and_products(self):
exported_orders_counter = 0
for order in self.webservice.get_orders_to_export(self.config.order_valid_status):
for order in self.webservice.get_orders_to_export(self.config.order_valid_status, self.config.order_refund_status):
if self.config.order_limit and exported_orders_counter >= self.config.order_limit:
break
try:
Expand Down
2 changes: 2 additions & 0 deletions src/psebpconnector/connector_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class ConnectorConfiguration:
apikey: str
ebp_executable_path: Path
order_valid_status: List[str]
order_refund_status: List[str]
payment_method_mapping_file_path: Path
vat_mapping_file_path: Path
working_directory: Path
Expand Down Expand Up @@ -77,6 +78,7 @@ def load_required_options(self):
setattr(self, key, self._config.get('main', key))
self.ebp_executable_path = Path(self.ebp_executable_path)
self.order_valid_status = [status.strip() for status in self.order_valid_status.split(',')]
self.order_refund_status = [status.strip() for status in self.order_refund_status.split(',')]
self.payment_method_mapping_file_path = Path(self.payment_method_mapping_file_path)
self.vat_mapping_file_path = Path(self.vat_mapping_file_path)
self.working_directory = Path(self.working_directory)
Expand Down

0 comments on commit 5baf8d3

Please sign in to comment.