Skip to content

Commit

Permalink
Merge branch 'master' into joamag/import-seeplus
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag authored Dec 23, 2023
2 parents d733c2c + de3c17f commit 53a4495
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ easypay.shelve*

.DS_Store

/.vscode/settings.json

/dist
/build
/src/budy.egg-info
8 changes: 0 additions & 8 deletions .vscode/settings.json

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

*

## [0.8.6] - 2023-12-13

### Added

* Support for `fix_lines_s()` in `Bundle`

## [0.8.5] - 2023-06-29

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

setuptools.setup(
name = "budy",
version = "0.8.5",
version = "0.8.6",
author = "Hive Solutions Lda.",
author_email = "[email protected]",
description = "Budy E-commerce System",
Expand Down
2 changes: 1 addition & 1 deletion src/budy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def get_seeplus_api(self):
return self.seeplus_api

def _version(self):
return "0.8.5"
return "0.8.6"

def _description(self):
return "Budy"
Expand Down
11 changes: 11 additions & 0 deletions src/budy/models/bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,17 @@ def empty_s(self):
self.lines = []
self.save()

@appier.operation(name = "Fix Lines")
def fix_lines_s(self):
lines = self.lines
lines_f = []
for line in lines:
if not line.is_resolvable(): continue
line.resolve()
lines_f.append(line)
self.lines = lines_f
self.save()

@appier.operation(name = "Fix Sub Total")
def fix_sub_total_s(self):
if self.sub_total: return
Expand Down

0 comments on commit 53a4495

Please sign in to comment.