Bonsoir,
Pour continuer sur mon problĂšme dâorigine de passerelle Stripe, jâarrive maintenant Ă gĂ©nĂ©rer automatiquement la facture de vente mais jâai un problĂšme avec la crĂ©ation de demande de paiement en automatique. Jâai dĂ©jĂ payĂ© une 1Ăšre fois mais le paiement ne se fait pas automatiquement les fois dâaprĂšs.
Dans le journal dâerreurs, jâai lâerreur ci-dessous.
Est-ce que ça vous dit quelque chose ?
Je suis obligé de payer sur le portail à chaque échéance.
Je vous remercie
Erreur de mise Ă jour dâabonnement pour lâabonnement ACC-SUB-2023-00002
Traceback with variables (most recent call last):
File âapps/erpnext/erpnext/accounts/doctype/subscription/subscription.pyâ, line 107, in process_active_subscription
SubscriptionPaymentRequestGenerator(self, invoice.name).make_payment_request()
self = <Subscription: ACC-SUB-2023-00002>
invoice = <SalesInvoice: ACC-SINV-2023-00017 docstatus=1>
File âapps/erpnext/erpnext/accounts/doctype/subscription/subscription_transaction.pyâ, line 394, in make_payment_request
payment_request = self.create_payment_request(submit=True)
self = <erpnext.accounts.doctype.subscription.subscription_transaction.SubscriptionPaymentRequestGenerator object at 0x7fb9f9216bc0>
File âapps/erpnext/erpnext/accounts/doctype/subscription/subscription_transaction.pyâ, line 477, in create_payment_request
pr.insert(ignore_permissions=True)
self = <erpnext.accounts.doctype.subscription.subscription_transaction.SubscriptionPaymentRequestGenerator object at 0x7fb9f9216bc0>
submit = True
get_payment_gateway_account = <function get_payment_gateway_account at 0x7fb9f7d7fbe0>
make_payment_request = <function make_payment_request at 0x7fb9f7d7f9a0>
link_dt = âSales Invoiceâ
link_dn = âACC-SINV-2023-00017â
pr = <PaymentRequest: ACC-PRQ-2023-03-14-00001>
File âapps/frappe/frappe/model/document.pyâ, line 265, in insert
self.run_before_save_methods()
self = <PaymentRequest: ACC-PRQ-2023-03-14-00001>
ignore_permissions = True
ignore_links = None
ignore_if_duplicate = False
ignore_mandatory = None
set_name = None
set_child_names = True
File âapps/frappe/frappe/model/document.pyâ, line 1100, in run_before_save_methods
self.run_method(âvalidateâ)
self = <PaymentRequest: ACC-PRQ-2023-03-14-00001>
File âapps/frappe/frappe/model/document.pyâ, line 966, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
self = <PaymentRequest: ACC-PRQ-2023-03-14-00001>
args = ()
kwargs = {}
fn = <function Document.run_method..fn at 0x7fb9f86f7d00>
method = âvalidateâ
File âapps/frappe/frappe/model/document.pyâ, line 1331, in composer
return composed(self, method, args, **kwargs)
self = <PaymentRequest: ACC-PRQ-2023-03-14-00001>
args = ()
kwargs = {}
hooks = [<function apply at 0x7fba12f7b010>]
method = âvalidateâ
doc_events = {'': {âafter_insertâ: [âfrappe.event_streaming.doctype.event_update_log.event_update_log.notify_consumersâ, âerpnext.venue.doctype.booking_credit_rule.booking_credit_rule.trigger_credit_rulesâ], âon_updateâ: [âfrappe.desk.notifications.clear_doctype_notificationsâ, âfrappe.core.doctype.activity_log.feed.update_feedâ, âfrappe.workflow.doctype.workflow_action.workflow_action.process_workflow_actionsâ, âfrappe.automation.doctype.assignment_rule.assignment_rule.applyâ, âfrappe.core.doctype.file.utils.attach_files_to_documentâ, âfrappe.event_streaming.doctype.event_update_log.event_update_log.notify_consumersâ, âfrappe.automation.doctype.assignment_rule.assignment_rule.update_due_dateâ, âfrappe.core.doctype.user_type.user_type.apply_permissions_for_non_standard_user_typeâ], âafter_renameâ: [âfrappe.desk.notifications.clear_doctype_notificationsâ], âon_cancelâ: [âfrappe.desk.notifications.clear_doctype_notificationsâ, 'frappe.workflow.doctype.workflow_action.workflow_action.process_workflowâŠ
handler = âerpnext.support.doctype.service_level_agreement.service_level_agreement.applyâ
composed = <function Document.hook..compose..runner at 0x7fb9f7bc4ca0>
compose = <function Document.hook..compose at 0x7fb9f7bc43a0>
f = <function Document.run_method..fn at 0x7fb9f86f7d00>
File âapps/frappe/frappe/model/document.pyâ, line 1313, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
self = <PaymentRequest: ACC-PRQ-2023-03-14-00001>
method = âvalidateâ
args = ()
kwargs = {}
add_to_return_value = <function Document.hook..add_to_return_value at 0x7fb9f7bc4af0>
fn = <function Document.run_method..fn at 0x7fb9f86f7d00>
hooks = (<function apply at 0x7fba12f7b010>,)
File âapps/frappe/frappe/model/document.pyâ, line 963, in fn
return method_object(*args, **kwargs)
self = <PaymentRequest: ACC-PRQ-2023-03-14-00001>
args = ()
kwargs = {}
method_object = <bound method PaymentRequest.validate of <PaymentRequest: ACC-PRQ-2023-03-14-00001>>
method = âvalidateâ
File âapps/erpnext/erpnext/accounts/doctype/payment_request/payment_request.pyâ, line 60, in validate
self.set_message_from_template()
self = <PaymentRequest: ACC-PRQ-2023-03-14-00001>
File âapps/erpnext/erpnext/accounts/doctype/payment_request/payment_request.pyâ, line 544, in set_message_from_template
data = frappe._dict(get_message(self, self.email_template))
self = <PaymentRequest: ACC-PRQ-2023-03-14-00001>
File âapps/erpnext/erpnext/accounts/doctype/payment_request/payment_request.pyâ, line 779, in get_message
else check_if_immediate_payment_is_autorized(doc.get(ânameâ)),
doc = {ânameâ: âACC-PRQ-2023-03-14-00001â, âownerâ: âAdministratorâ, âcreationâ: â2023-03-14 20:08:35.866128â, âmodifiedâ: â2023-03-14 20:08:35.866128â, âmodified_byâ: âAdministratorâ, âdocstatusâ: 0, âidxâ: 0, âstatusâ: âDraftâ, âtransaction_dateâ: â2023-03-14â, âpayment_keyâ: â3ec373daa7e060c59547ac3b180d29b42d81edf9b3f8710e88bcf965â, âno_payment_linkâ: 0, ânaming_seriesâ: âACC-PRQ-.YYYY.-.MM.-.DD.-â, âreference_doctypeâ: âSales Invoiceâ, âreference_nameâ: âACC-SINV-2023-00017â, âsubscriptionâ: âACC-SUB-2023-00002â, âgrand_totalâ: 4.0, âbase_amountâ: 0.0, âexchange_rateâ: 1.0, âfee_amountâ: 0.0, âcurrencyâ: âEURâ, âpayment_gateways_templateâ: âStripe Abonnementâ, âpayment_gatewayâ: âStripe-lagaloche4â, âtransaction_referenceâ: None, âpayment_gateway_accountâ: âStripe-lagaloche4 - EURâ, âcost_centerâ: None, âprojectâ: None, âsubjectâ: âDemande de paiement pour ACC-SINV-2023-00017â, âmute_emailâ: 0, âemail_toâ: âburloty@gmail.comâ, âprint_formatâ: âSales Invoiceâ, âmake_sales_invoiceâ: 0, 'eâŠ
template = âNotification de factureâ
payment_can_be_processed_immediately = None
File âapps/erpnext/erpnext/accounts/doctype/payment_request/payment_request.pyâ, line 797, in check_if_immediate_payment_is_autorized
return frappe.get_doc(
payment_request = âACC-PRQ-2023-03-14-00001â
File âapps/frappe/frappe/init.pyâ, line 1173, in get_doc
doc = frappe.model.document.get_doc(*args, **kwargs)
args = (âPayment Requestâ, âACC-PRQ-2023-03-14-00001â)
kwargs = {}
frappe = <module âfrappeâ from âapps/frappe/frappe/init.pyâ>
File âapps/frappe/frappe/model/document.pyâ, line 75, in get_doc
return controller(*args, **kwargs)
args = (âPayment Requestâ, âACC-PRQ-2023-03-14-00001â)
kwargs = {}
doctype = âPayment Requestâ
controller = <class âerpnext.accounts.doctype.payment_request.payment_request.PaymentRequestâ>
File âapps/frappe/frappe/model/document.pyâ, line 109, in init
self.load_from_db()
self = <PaymentRequest: ACC-PRQ-2023-03-14-00001>
args = (âPayment Requestâ, âACC-PRQ-2023-03-14-00001â)
kwargs = {}
class = <class âfrappe.model.document.Documentâ>
File âapps/frappe/frappe/model/document.pyâ, line 153, in load_from_db
frappe.throw(
self = <PaymentRequest: ACC-PRQ-2023-03-14-00001>
d = None
class = <class âfrappe.model.document.Documentâ>
File âapps/frappe/frappe/init.pyâ, line 515, in throw
msgprint(
msg = âDemande de paiement ACC-PRQ-2023-03-14-00001 introuvableâ
exc = <class âfrappe.exceptions.DoesNotExistErrorâ>
title = None
is_minimizable = False
wide = False
as_list = False
File âapps/frappe/frappe/init.pyâ, line 483, in msgprint
_raise_exception()
title = None
as_table = False
as_list = False
indicator = âredâ
alert = False
primary_action = None
is_minimizable = False
wide = False
sys = <module âsysâ (built-in)>
out = {âmessageâ: âDemande de paiement ACC-PRQ-2023-03-14-00001 introuvableâ, âtitleâ: âMessageâ, âindicatorâ: âredâ, âraise_exceptionâ: 1}
_strip_html_tags = <functools._lru_cache_wrapper object at 0x7fb9f7c6eae0>
_raise_exception = <function msgprint.._raise_exception at 0x7fb9f7bc4e50>
inspect = <module âinspectâ from â/usr/lib/python3.10/inspect.pyâ>
msg = âDemande de paiement ACC-PRQ-2023-03-14-00001 introuvableâ
raise_exception = <class âfrappe.exceptions.DoesNotExistErrorâ>
strip_html_tags = <function strip_html_tags at 0x7fba1a4d4310>
File âapps/frappe/frappe/init.pyâ, line 430, in _raise_exception
raise raise_exception(msg)
inspect = <module âinspectâ from â/usr/lib/python3.10/inspect.pyâ>
msg = âDemande de paiement ACC-PRQ-2023-03-14-00001 introuvableâ
raise_exception = <class âfrappe.exceptions.DoesNotExistErrorâ>
frappe.exceptions.DoesNotExistError: Demande de paiement ACC-PRQ-2023-03-14-00001 introuvable