modify error message for open sale in profile salesman
This commit is contained in:
parent
a940193b6d
commit
8cc6cbf204
|
@ -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()
|
||||
|
|
|
@ -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!'),
|
||||
|
|
Loading…
Reference in New Issue