|
@@ -226,6 +226,7 @@ def get_discount_c():
|
|
def get_order_a(items = True, discounts = True):
|
|
def get_order_a(items = True, discounts = True):
|
|
order = finoex.Order(
|
|
order = finoex.Order(
|
|
customer_id = u'customer',
|
|
customer_id = u'customer',
|
|
|
|
+ debitor_address='@home',
|
|
order_date = datetime.datetime(2016, 5, 8, 0, 18, 17),
|
|
order_date = datetime.datetime(2016, 5, 8, 0, 18, 17),
|
|
order_id = u'id',
|
|
order_id = u'id',
|
|
platform = u'platformπ',
|
|
platform = u'platformπ',
|
|
@@ -263,6 +264,7 @@ def get_invoice(items = True, discounts = True):
|
|
inv = finoex.Invoice(
|
|
inv = finoex.Invoice(
|
|
creditor = u'platformπ',
|
|
creditor = u'platformπ',
|
|
debitor_id = u'customer',
|
|
debitor_id = u'customer',
|
|
|
|
+ debitor_address='@home',
|
|
invoice_date = datetime.datetime(2016, 5, 8, 0, 18, 17),
|
|
invoice_date = datetime.datetime(2016, 5, 8, 0, 18, 17),
|
|
invoice_id = u'id',
|
|
invoice_id = u'id',
|
|
invoice_url = 'http://example.com/invoice.pdf',
|
|
invoice_url = 'http://example.com/invoice.pdf',
|
|
@@ -391,6 +393,7 @@ reward: product
|
|
"""],
|
|
"""],
|
|
[get_order_a(), u"""!order
|
|
[get_order_a(), u"""!order
|
|
customer_id: customer
|
|
customer_id: customer
|
|
|
|
+debitor_address: '@home'
|
|
discounts:
|
|
discounts:
|
|
- !discount
|
|
- !discount
|
|
amount: !sum '1.23 EUR'
|
|
amount: !sum '1.23 EUR'
|
|
@@ -412,6 +415,7 @@ platform_view_url: http://i.dont.know
|
|
"""],
|
|
"""],
|
|
[get_order_a(discounts = False), u"""!order
|
|
[get_order_a(discounts = False), u"""!order
|
|
customer_id: customer
|
|
customer_id: customer
|
|
|
|
+debitor_address: '@home'
|
|
items:
|
|
items:
|
|
- !item
|
|
- !item
|
|
name: item a
|
|
name: item a
|
|
@@ -496,6 +500,7 @@ price_brutto: !sum '1.23 EUR'
|
|
"""],
|
|
"""],
|
|
[get_invoice(), u"""!invoice
|
|
[get_invoice(), u"""!invoice
|
|
creditor: platformπ
|
|
creditor: platformπ
|
|
|
|
+debitor_address: '@home'
|
|
debitor_id: customer
|
|
debitor_id: customer
|
|
discounts:
|
|
discounts:
|
|
- !discount
|
|
- !discount
|
|
@@ -659,6 +664,7 @@ tracking_number: LX123456789CN
|
|
"""],
|
|
"""],
|
|
[get_order_a(), u"""!order
|
|
[get_order_a(), u"""!order
|
|
customer_id: customer
|
|
customer_id: customer
|
|
|
|
+debitor_address: '@home'
|
|
discounts:
|
|
discounts:
|
|
- !discount
|
|
- !discount
|
|
amount: !sum '1.23 EUR'
|
|
amount: !sum '1.23 EUR'
|
|
@@ -711,6 +717,7 @@ route_map: null
|
|
"""],
|
|
"""],
|
|
[get_invoice(), u"""!invoice
|
|
[get_invoice(), u"""!invoice
|
|
creditor: platformπ
|
|
creditor: platformπ
|
|
|
|
+debitor_address: '@home'
|
|
debitor_id: customer
|
|
debitor_id: customer
|
|
invoice_date: 2016-05-08T00:18:17
|
|
invoice_date: 2016-05-08T00:18:17
|
|
invoice_id: id
|
|
invoice_id: id
|