Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion client.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ def add_position_to_order(self, quantity, price, tax, text, payment_method_type=
4 – ставка НДС расч. 10/110
5 – ставка НДС 0%
6 – НДС не облагается
7 - ставка НДС 5%
8 - ставка НДС 7%
9 - ставка НДС расч. 5/105
10 - ставка НДС расч. 7/107
11 - ставка НДС 22%
12 - ставка НДС расч. 22/122
:param text: Наименование предмета расчета, 1030 (Строка до 128 символов)
:param payment_method_type: Признак способа расчета, 1214 (Число от 1 до 7.
По умолчанию будет отправлено значение 4):
Expand Down Expand Up @@ -195,7 +201,7 @@ def add_position_to_order(self, quantity, price, tax, text, payment_method_type=
:return:
"""
if isinstance(quantity, (float, int)) and isinstance(price, Decimal) and tax in (
1, 2, 3, 4, 5, 6) and length_is_valid(text, max_=128):
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) and length_is_valid(text, max_=128):
position = dict()
position['quantity'] = quantity
position['price'] = float(price)
Expand Down