feat: update recipit
This commit is contained in:
@@ -49,8 +49,9 @@ class ClaudeKassirClient(IReceipt):
|
||||
total = total_amount.quantize(Decimal('0.01'))
|
||||
principal = principal_amount.quantize(Decimal('0.01'))
|
||||
fee = service_fee.quantize(Decimal('0.01'))
|
||||
description = f'Исполнение поручения принципала по заявке №{order_id}'
|
||||
fee_description = f'Агентское вознаграждение за исполнение поручения по заявке №{order_id}'
|
||||
description = f'Оплата по заявке №{order_id}'
|
||||
principal_description = f'Исполнение поручения принципала по заявке №{order_id}'
|
||||
fee_description = f'Агентское вознаграждение по заявке №{order_id}'
|
||||
payload: dict[str, Any] = {
|
||||
'Inn': self._inn,
|
||||
'Type': 'Income',
|
||||
@@ -58,29 +59,30 @@ class ClaudeKassirClient(IReceipt):
|
||||
'AccountId': user_id,
|
||||
'Description': description,
|
||||
'CustomerReceipt': {
|
||||
'TaxationSystem': 2,
|
||||
'Items': [
|
||||
{
|
||||
'label': description,
|
||||
'label': principal_description,
|
||||
'price': float(principal),
|
||||
'quantity': 1.00,
|
||||
'quantity': 1,
|
||||
'amount': float(principal),
|
||||
'vat': 0,
|
||||
'method': 4,
|
||||
'object': 4,
|
||||
'measurement_unit': 'шт',
|
||||
'agent_info': {
|
||||
'type': 2,
|
||||
'type': 4,
|
||||
},
|
||||
'supplier_info': {
|
||||
'name': 'Принципал (физическое лицо)',
|
||||
'inn': '',
|
||||
'name': 'Принципал',
|
||||
'phones': [],
|
||||
'inn': self._inn,
|
||||
},
|
||||
},
|
||||
{
|
||||
'label': fee_description,
|
||||
'price': float(fee),
|
||||
'quantity': 1.00,
|
||||
'quantity': 1,
|
||||
'amount': float(fee),
|
||||
'vat': 0,
|
||||
'method': 4,
|
||||
@@ -88,17 +90,14 @@ class ClaudeKassirClient(IReceipt):
|
||||
'measurement_unit': 'шт',
|
||||
},
|
||||
],
|
||||
'taxationSystem': 2,
|
||||
'email': email,
|
||||
'phone': phone,
|
||||
'customerInn': customer_inn,
|
||||
'agentSign': 2,
|
||||
'amounts': {
|
||||
'electronic': float(total),
|
||||
'advancePayment': 0.00,
|
||||
'credit': 0.00,
|
||||
'provision': 0.00,
|
||||
'advancePayment': 0,
|
||||
'credit': 0,
|
||||
'provision': 0,
|
||||
},
|
||||
'email': email,
|
||||
'phone': phone,
|
||||
},
|
||||
'Email': email,
|
||||
'SuccessUrl': success_url or self._success_url,
|
||||
|
||||
Reference in New Issue
Block a user