Skip to content

Commit

Permalink
feat: made part of the options optional
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Mar 21, 2023
1 parent 9f959d2 commit c18f7f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

*
* Made part of the customer options optional in `Order`

## [0.7.10] - 2023-03-20

Expand Down
8 changes: 5 additions & 3 deletions src/budy/models/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -1426,10 +1426,12 @@ def import_seeplus_s(
if self.account:
customer = dict(
code = str(self.account.id),
name = self.account.full_name,
email = self.account.email,
mobile = self.account.phone_number
name = self.account.full_name
)
if self.account.email:
customer["email"] = self.account.email
if self.account.phone_number:
customer["mobile"] = self.account.phone_number

products = []

Expand Down

0 comments on commit c18f7f6

Please sign in to comment.