modify error message for open sale in profile salesman

This commit is contained in:
Wilson Gomez 2022-11-21 12:25:43 -05:00
parent a940193b6d
commit 8cc6cbf204
2 changed files with 3 additions and 2 deletions

View File

@ -1892,9 +1892,9 @@ class AppWindow(FrontWindow):
salesman = self.action_salesman_code()
self.field_salesman_code_ask.setText('')
if not salesman:
return self.dialog('error_salesman_wrong')
return self.dialog('error_salesman_incorrect')
elif salesman['code'] != sale[0]['salesman']['code']:
return self.dialog('error_salesman_wrong')
return self.dialog('error_salesman_incorrect')
self.load_sale(sale_id)
self.setFocus()
self.label_input.setFocus()

View File

@ -53,6 +53,7 @@ class StackMessages(QWidget):
'order_dispatched': ('info', 'ORDEN DESPACHADA!'),
'error_order_dispatched': ('error', 'ERROR EN DESPACHO DE ORDEN!'),
'error_salesman_wrong': ('error', 'CODIGO ERRADO!'),
'error_salesman_incorrect': ('error', 'CODIGO DE VENDEDOR NO PERTENECE A ESTA VENTA!'),
'missing_delivery_party': ('error', 'FALTA ASIGNAR EL DOMICILIARIO!'),
'select_products_to_split': ('question', 'SELECCIONE LOS PRODUCTOS A DIVIDIR!'),
'fail_send_invoice': ('info', 'FALLO LA VALIDACION DE LA FACTURA ELECTRONICA!'),