fixes: work with iter_resource, and use ISO currency codes instead of symbols
This commit is contained in:
parent
583923622b
commit
9e227830bf
2 changed files with 9 additions and 1 deletions
|
|
@ -131,6 +131,6 @@ class Amazon(LoginBrowser):
|
||||||
b.date = o.date
|
b.date = o.date
|
||||||
b.price = o.total
|
b.price = o.total
|
||||||
b.format = o._bill['format']
|
b.format = o._bill['format']
|
||||||
b.currency = self.get_currency()
|
b.currency = b.get_currency(self.get_currency())
|
||||||
b.vat = o.tax
|
b.vat = o.tax
|
||||||
yield b
|
yield b
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,14 @@ class AmazonModule(Module, CapShop, CapBill):
|
||||||
order = self.get_order(order)
|
order = self.get_order(order)
|
||||||
return self.browser.iter_items(order)
|
return self.browser.iter_items(order)
|
||||||
|
|
||||||
|
def iter_resources(self, objs, split_path):
|
||||||
|
if Order in objs:
|
||||||
|
self._restrict_level(split_path)
|
||||||
|
return self.iter_orders()
|
||||||
|
if Subscription in objs:
|
||||||
|
self._restrict_level(split_path)
|
||||||
|
return self.iter_subscription()
|
||||||
|
|
||||||
def iter_subscription(self):
|
def iter_subscription(self):
|
||||||
return self.browser.get_subscription_list()
|
return self.browser.get_subscription_list()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue