model

model.cost.default_cost

  • Attribute: lsserver.core.localizations.keys.DEFAULT_COST
  • Example Message: Must have exactly 1 default cost.

model.documents.cannot_use_merged_customer

  • Attribute: lsserver.core.localizations.keys.CANNOT_USE_MERGED_CUSTOMER
  • Example Message: Cannot use a merged customer for this document.

model.documents.duplicate_serial_number

  • Attribute: lsserver.core.localizations.keys.DUPLICATE_SERIAL_NUMBER
  • Fields: serial, resource, product_description
  • Example Message: %(resource)s: Product “%(product_description)s” creates a duplicate serial number (%(serial)s) in invoice.
  • Doc: None: Product “None” creates a duplicate serial number (None) in invoice.

model.documents.invalid_serial_number

  • Attribute: lsserver.core.localizations.keys.INVALID_SERIAL_NUMBER
  • Example Message: Serial numbers provided is invalid

model.documents.invoice_already_activated

  • Attribute: lsserver.core.localizations.keys.INVOICE_ALREADY_ACTIVATED
  • Example Message: This invoice has already been activated. You must re-open it first.

model.documents.lineitem_cannot_be_edited

  • Attribute: lsserver.core.localizations.keys.LINEITEM_CANNOT_BE_EDITED
  • Example Message: This lineitem cannot be edited at this time.

model.documents.serial_numbers_not_provided

  • Attribute: lsserver.core.localizations.keys.SERIAL_NUMBERS_NOT_PROVIDED
  • Example Message: No serial numbers were provided.

model.gift_cards.duplicate_serial_number

  • Attribute: lsserver.core.localizations.keys.GIFT_CARDS_DUPLICATE_SERIAL_NUMBER
  • Fields: serial_number
  • Example Message: Duplicate serial number (%(serial_number)s)
  • Doc: Duplicate serial number (None)

model.gift_cards.missing_serial_number

  • Attribute: lsserver.core.localizations.keys.GIFT_CARDS_MISSING_SERIAL_NUMBER
  • Example Message: Required serial number missing.

model.gift_cards.serial_number_not_editable

  • Attribute: lsserver.core.localizations.keys.GIFT_CARDS_SERIAL_NUMBER_NOT_EDITABLE
  • Fields: new_serial_number, old_serial_number
  • Example Message: Cannot modify a gift card’s serial number

model.gift_cards.server_generated_serial_numbers

  • Attribute: lsserver.core.localizations.keys.GIFT_CARDS_GENERATED_SERIAL_NUMBERS
  • Fields: serial_number
  • Example Message: Gift card serials are generated by the server. Cannot be set manually

model.gift_cards.source_id_and_invoice_id_specified_error

  • Attribute: lsserver.core.localizations.keys.GIFT_CARDS_SOURCE_ID_AND_INVOICE_ID_SPECIFIED_ERROR
  • Example Message: Both the source id and invoice id are given. Only one of these can be be specified.

model.invalid_password

  • Attribute: lsserver.core.localizations.keys.INVALID_PASSWORD_ERROR
  • Fields: resource
  • Example Message: The password value specified is invalid for resource: %(resource)s
  • Doc: The password value specified is invalid for resource: None

model.invoice.delete_gift_card_payment

  • Attribute: lsserver.core.localizations.keys.INVOICE_DELETE_GIFT_CARD_PAYMENT
  • Example Message: Cannot remove a gift card payment.

model.invoice.invoice_has_activated_gift_cards

  • Attribute: lsserver.core.localizations.keys.INVOICE_HAS_ACTIVATED_GIFT_CARDS
  • Example Message: This invoice already has activated gift cards.

model.invoice.invoice_has_payments

  • Attribute: lsserver.core.localizations.keys.INVOICE_HAS_PAYMENTS
  • Fields: num_payments
  • Example Message: This invoice already has [%(num_payments)s] payments.
  • Doc: This invoice already has [None] payments.

model.invoice.lineitems_still_attached

  • Attribute: lsserver.core.localizations.keys.LINEITEMS_STILL_ATTACHED
  • Example Message: Cannot void invoice with line items still attached.

model.invoice.return_in_stock_serial_error

  • Attribute: lsserver.core.localizations.keys.RETURN_IN_STOCK_SERIAL_ERROR
  • Fields: serial_number, product_code
  • Example Message: Product [%(product_code)s] with serial [%(serial_number)s] is in stock and cannot be returned.
  • Doc: Product [None] with serial [None] is in stock and cannot be returned.

model.invoice.voided_invoice

  • Attribute: lsserver.core.localizations.keys.VOIDED_INVOICE
  • Fields: not_allowed_items
  • Example Message: Cannot update these items: %(not_allowed_items)s on a voided invoice
  • Doc: Cannot update these items: None on a voided invoice

model.model_hook_exception

  • Attribute: lsserver.core.localizations.keys.MODEL_HOOK_EXCEPTION
  • Fields: message
  • Example Message: Model hook exception: %(message)s
  • Doc: Model hook exception: None

model.payments.credit_cards.customer_payment_gateway_token_mismatch

  • Attribute: lsserver.core.localizations.keys.CUSTOMER_PAYMENT_TOKEN_MISMATCH
  • Example Message: The request token does not belong to the assigned customer.

model.payments.credit_cards.payment_gateway_token_requires_customer

  • Attribute: lsserver.core.localizations.keys.PAYMENT_TOKEN_REQUIRES_CUSTOMER
  • Example Message: A customer must assigned when generating customer payment gateway tokens.

model.payments.credit_cards.payment_too_small

  • Attribute: lsserver.core.localizations.keys.PAYMENT_TOO_SMALL
  • Fields: request_type
  • Example Message: A %(request_type)s is requested but the amount is less that 0.01
  • Doc: A None is requested but the amount is less that 0.01

model.payments.gift_cards.amount_positive_error

  • Attribute: lsserver.core.localizations.keys.GIFT_CARD_AMOUNT_POSITIVE_ERROR
  • Example Message: Amount for gift card sale must be positive.

model.payments.gift_cards.insufficient_funds_error

  • Attribute: lsserver.core.localizations.keys.GIFT_CARD_INSUFFICIENT_FUNDS_ERROR
  • Fields: amount, total
  • Example Message: Insufficient funds remain on gift card (%(total)s vs %(amount)s)
  • Doc: Insufficient funds remain on gift card (None vs None)

model.payments.gift_cards.no_serial_number_error

  • Attribute: lsserver.core.localizations.keys.GIFT_CARD_NO_SERIAL_NUMBER_ERROR
  • Example Message: No gift card serial number passed in.

model.payments.gift_cards.product_not_found_error

  • Attribute: lsserver.core.localizations.keys.GIFT_CARD_PRODUCT_NOT_FOUND_ERROR
  • Fields: product_code
  • Example Message: Could not find product with code ‘%(product_code)s’
  • Doc: Could not find product with code ‘None’

model.payments.gift_cards.product_required_error

  • Attribute: lsserver.core.localizations.keys.GIFT_CARD_PRODUCT_REQUIRED_ERROR
  • Example Message: pre_processed Gift Card payments require a product

model.payments.gift_cards.serial_number_does_not_exist_error

  • Attribute: lsserver.core.localizations.keys.GIFT_CARD_SERIAL_NUMBER_DOES_NOT_EXIST_ERROR
  • Fields: serial_number
  • Example Message: Could not find gift card with serial ‘%(serial_number)s’
  • Doc: Could not find gift card with serial ‘None’

model.payments.store_credit.bad_base_payment_error

  • Attribute: lsserver.core.localizations.keys.STORE_CREDIT_BAD_BASE_PAYMENT_ERROR
  • Example Message: Store Credits can only be applied to invoices.

model.payments.store_credit.invalid_type_error

  • Attribute: lsserver.core.localizations.keys.STORE_CREDIT_INVALID_TYPE_ERROR
  • Fields: type
  • Example Message: Payment type cannot be %(type)s
  • Doc: Payment type cannot be None

model.payments.store_credit.negative_amount_error

  • Attribute: lsserver.core.localizations.keys.STORE_CREDIT_NEGATIVE_AMOUNT_ERROR
  • Fields: amount
  • Example Message: Cannot use a negative amount (%(amount)s)
  • Doc: Cannot use a negative amount (None)

model.payments.store_credit.not_enough_credit_error

  • Attribute: lsserver.core.localizations.keys.STORE_CREDIT_NOT_ENOUGH_CREDIT_ERROR
  • Fields: credit, amount
  • Example Message: Not enough credit. Purchase amount: %(amount)s; available credit: %(credit)s.
  • Doc: Not enough credit. Purchase amount: None; available credit: None.

model.payments.store_credit.source_loading_error

  • Attribute: lsserver.core.localizations.keys.STORE_CREDIT_SOURCE_LOADING_ERROR
  • Fields: type, id
  • Example Message: Unable to load credited document. document: %(type)s; id: %(id)s
  • Doc: Unable to load credited document. document: None; id: None

model.payments.store_credit.unsaved_invoice_error

  • Attribute: lsserver.core.localizations.keys.STORE_CREDIT_UNSAVED_INVOICE_ERROR
  • Example Message: Cannot add a payment to an invoice which has not been saved.

model.po.already_cancelled

  • Attribute: lsserver.core.localizations.keys.ALREADY_CANCELLED
  • Example Message: The purchase order is already cancelled.

model.po.invalid_quantity

  • Attribute: lsserver.core.localizations.keys.INVALID_QUANTITY
  • Example Message: Quantity given is invalid.

model.po.inventory_fully_or_partially_received

  • Attribute: lsserver.core.localizations.keys.INVENTORY_FULLY_OR_PARTIALLY_RECEIVED
  • Example Message: Some or all inventories have been received.

model.po.no_cost_available_for_supplier

  • Attribute: lsserver.core.localizations.keys.NO_COST_AVAILABLE_FOR_SUPPLIER
  • Example Message: The product does not have any cost with the PO supplier.

model.po.product_not_ordered

  • Attribute: lsserver.core.localizations.keys.PRODUCT_NOT_ORDERED
  • Example Message: The received product was not ordered on the PO.

model.po.product_not_serialized

  • Attribute: lsserver.core.localizations.keys.PRODUCT_NOT_SERIALIZED
  • Example Message: Receiving serial numbers for non serialized product.

model.po.transfer_already_received

  • Attribute: lsserver.core.localizations.keys.TRANSFER_ALREADY_RECEIVED
  • Example Message: The requested transfer has already been received.

model.po.transfer_multi_store_not_found

  • Attribute: lsserver.core.localizations.keys.TRANSFER_MULTI_STORE_NOT_FOUND
  • Example Message: The multi-store is not found.

model.pos_settings.logo_already_exists_error

  • Attribute: lsserver.core.localizations.keys.POS_LOGO_ALREADY_EXISTS_ERROR
  • Example Message: POS Logo already exists, change logo by updating.

model.pos_settings.logo_does_not_exist_error

  • Attribute: lsserver.core.localizations.keys.POS_LOGO_LOGO_DOES_NOT_EXIST_ERROR
  • Example Message: POS Logo does not exist, create logo first.

model.product.already_master_product

  • Attribute: lsserver.core.localizations.keys.ALREADY_MASTER_PRODUCT
  • Example Message: Cannot set master product to a master product.

model.product.missing_child_color_size

  • Attribute: lsserver.core.localizations.keys.MISSING_CHILD_COLOR_SIZE
  • Example Message: A child product must have color and size attached.

model.product.product_limit_exceeded

  • Attribute: lsserver.core.localizations.keys.PRODUCT_LIMIT_EXCEEDED
  • Example Message: The number of products allowed in license has been exceeded

model.product.suffix_not_supported

  • Attribute: lsserver.core.localizations.keys.SUFFIX_NOT_SUPPORTED
  • Example Message: Requested suffix is currently not supported.

model.product.unmatched_serial_number_count

  • Attribute: lsserver.core.localizations.keys.UNMATCHED_SERIAL_NUMBER_COUNT
  • Fields: expected_serial_qty, actual_serial_qty
  • Example Message: Expected serial number count of %(expected_serial_qty)s but received %(actual_serial_qty)s
  • Doc: Expected serial number count of None but received None

model.quote.invalid_serial_number_count

  • Attribute: lsserver.core.localizations.keys.INVALID_SERIAL_NUMBER_COUNT
  • Fields: item_id, actual_serial_number_count, required_serial_number_count
  • Example Message: Line item %(item_id)s has %(actual_serial_number_count)s but requires %(required_serial_number_count)s
  • Doc: Line item None has None but requires None

model.serial_number.cannot_sell_warehoused_serial_number

  • Attribute: lsserver.core.localizations.keys.CANNOT_SELL_WAREHOUSED_SERIAL_NUMBER
  • Fields: serial_number
  • Example Message: Cannot sell a serial number number that is in the warehouse: %s
  • Doc: Cannot sell a serial number number that is in the warehouse: {u’serial_number’: u’None’}

model.serial_number.missing_serial_number

  • Attribute: lsserver.core.localizations.keys.MISSING_SERIAL_NUMBER
  • Fields: serial_number
  • Example Message: The required serial number %s cannot be found.
  • Doc: The required serial number {u’serial_number’: u’None’} cannot be found.

model.serial_number.unknown_warehouse

  • Attribute: lsserver.core.localizations.keys.UNKNOWN_WAREHOUSE
  • Fields: warehouse, serial
  • Example Message: Unknown warehouse [%(warehouse)s] for serial number [%(serial)s].
  • Doc: Unknown warehouse [None] for serial number [None].

model.store.communication_error

  • Attribute: lsserver.core.localizations.keys.MULTI_STORE_COMMUNICATION_ERROR
  • Fields: msg
  • Example Message: An unexpected multistore communication error occurred: %(msg)s
  • Doc: An unexpected multistore communication error occurred: None

model.store.multi_store_activate_error

  • Attribute: lsserver.core.localizations.keys.MULTI_STORE_ACTIVATE_ERROR
  • Fields: reason
  • Example Message: An error occured while attempting to activate the store. Reason [%(reason)s]
  • Doc: An error occured while attempting to activate the store. Reason [None]

model.store.multi_store_disabled_error

  • Attribute: lsserver.core.localizations.keys.MULTI_STORE_DISABLED_ERROR
  • Example Message: MultiStore functionality is disabled.

model.store.multi_store_error

  • Attribute: lsserver.core.localizations.keys.GENERAL_MULTI_STORE_ERROR
  • Fields: url, error_contents, error_code, method
  • Example Message: An unexpected multistore error occurred. %(method)s:%(url)s:%(error_code)s:%(error_contents)s
  • Doc: An unexpected multistore error occurred. None:None:None:None

model.store.multi_store_invalid_credentials

  • Attribute: lsserver.core.localizations.keys.MULTI_STORE_INVALID_CREDENTIALS
  • Fields: store_name, reason
  • Example Message: Invalid Crendentials to connect to multistore [%(store_name)s]. Reason: [%(reason)s]
  • Doc: Invalid Crendentials to connect to multistore [None]. Reason: [None]

model.store.multi_store_invalid_ip_address

  • Attribute: lsserver.core.localizations.keys.MULTI_STORE_INVALID_IP_ADDRESS
  • Fields: ip
  • Example Message: Invalid IP address [%(ip)s] given.
  • Doc: Invalid IP address [None] given.

model.store.multi_store_unexpected_error

  • Attribute: lsserver.core.localizations.keys.MULTI_STORE_UNEXPECTED_ERROR
  • Fields: message
  • Example Message: An unexpected error occured: [%(message)s]
  • Doc: An unexpected error occured: [None]

model.store.multi_store_unsupported_error

  • Attribute: lsserver.core.localizations.keys.MULTI_STORE_UNSUPPORTED_ERROR
  • Fields: store_name
  • Example Message: Connecting to unsupported version of multistore [%(store_name)s].
  • Doc: Connecting to unsupported version of multistore [None].

model.supplier.supplier_tied_to_cost

  • Attribute: lsserver.core.localizations.keys.SUPPLIER_TIED_TO_COST
  • Fields: item_id
  • Example Message: Supplier with id: “%(item_id)s” cannot be deleted as it is tied to Product costs.
  • Doc: Supplier with id: “None” cannot be deleted as it is tied to Product costs.

model.till.duplicate_station_name

  • Attribute: lsserver.core.localizations.keys.DUPLICATE_STATION_NAME
  • Fields: stationname
  • Example Message: The specified station (‘%(stationname)s’) has joined this till.
  • Doc: The specified station (‘None’) has joined this till.

model.till.invalid_stationname

  • Attribute: lsserver.core.localizations.keys.INVALID_STATION_NAME
  • Fields: stationname
  • Example Message: The specified station name (‘%(stationname)s’) is invalid
  • Doc: The specified station name (‘None’) is invalid

model.till.station_already_assigned

  • Attribute: lsserver.core.localizations.keys.STATION_ALREADY_ASSIGNED
  • Fields: stationname
  • Example Message: The specified station (‘%(stationname)s’) is already assigned to a till.
  • Doc: The specified station (‘None’) is already assigned to a till.

model.till.station_not_assigned

  • Attribute: lsserver.core.localizations.keys.STATION_NOT_ASSIGNED
  • Fields: stationname
  • Example Message: The specified station (‘%(stationname)s’) is not assigned to this till.
  • Doc: The specified station (‘None’) is not assigned to this till.

model.timesheet.different_user_for_timesheet_error

  • Attribute: lsserver.core.localizations.keys.DIFFERENT_USER_FOR_TIMESHEET_ERROR
  • Fields: message
  • Example Message: A timesheet cannot be altered by a user different than the one that created the timesheet.

model.timesheet.single_timesheet_error

  • Attribute: lsserver.core.localizations.keys.SINGLE_TIMESHEET_TIME_FOR_TIMESHEET_ERROR
  • Fields: message
  • Example Message: A time sheet can only have a single timesheet time running at a time.

model.user.cannot_set_pin_for_admin_error

  • Attribute: lsserver.core.localizations.keys.CANNOT_SET_PIN_FOR_ADMIN_ERROR
  • Example Message: An administrator cannot have a login pin set.

model.user.delete_last_admin_error

  • Attribute: lsserver.core.localizations.keys.CANNOT_DELETE_LAST_ADMIN
  • Example Message: Cannot delete the last admin account.

model.user.disable_last_admin_error

  • Attribute: lsserver.core.localizations.keys.CANNOT_DISABLE_LAST_ADMIN
  • Example Message: Cannot disable the last admin account.

model.user.duplicate_user_name

  • Attribute: lsserver.core.localizations.keys.DUPLICATE_USER_NAME
  • Fields: username
  • Example Message: The username ‘%(username)s’ is already in use.
  • Doc: The username ‘N/A’ is already in use.

model.user.invalid_pin_error

  • Attribute: lsserver.core.localizations.keys.INVALID_PIN_ERROR
  • Example Message: Invalid PIN, must be 4-8 characters in length and consist of only ASCII letters and numbers.

model.user.invalid_pin_length_error

  • Attribute: lsserver.core.localizations.keys.INVALID_PIN_LENGTH_ERROR
  • Fields: pin_length
  • Example Message: Invalid PIN length (%(pin_length)s); length must be between 4 and 8.
  • Doc: Invalid PIN length (0); length must be between 4 and 8.

model.user.old_password

  • Attribute: lsserver.core.localizations.keys.OLD_PASSWORD_ERROR
  • Example Message: The password is the same as one of the four previously used.

model.user.password_requirement_failure

  • Attribute: lsserver.core.localizations.keys.PASSWORD_REQUIREMENT_ERROR
  • Example Message: The password is required to be at least 7 characters long and contain both numeric and alphabetic characters.

model.user.preferences_file_not_owner

  • Attribute: lsserver.core.localizations.keys.USER_PREFERENCES_FILE_NOT_OWNER
  • Example Message: User is not owner of preferences file

model.user.product_not_found

  • Attribute: lsserver.core.localizations.keys.PRODUCT_NOT_FOUND_ERROR
  • Fields: product_code
  • Example Message: Unable to locate product with product code %(product_code)s
  • Doc: Unable to locate product with product code None

model.user.read_only_user

  • Attribute: lsserver.core.localizations.keys.READ_ONLY_USER_ERROR
  • Example Message: This user is read only.

model.user.reserved_user_name

  • Attribute: lsserver.core.localizations.keys.RESERVED_USER_NAME
  • Fields: username
  • Example Message: The username ‘%(username)s’ is reserved.
  • Doc: The username ‘N/A’ is reserved.

model.user.update_last_admin_privilege_error

  • Attribute: lsserver.core.localizations.keys.CANNOT_UPDATE_LAST_ADMIN_PRIVILEGE
  • Example Message: Cannot change the last admin accounts privilege group.

model.user.user_is_logged_in

  • Attribute: lsserver.core.localizations.keys.USER_IS_LOGGED_IN
  • Fields: username
  • Example Message: ‘%(username)s’ is currently logged in and cannot be deleted
  • Doc: ‘N/A’ is currently logged in and cannot be deleted

model.user.user_is_still_attached_to_documents

  • Attribute: lsserver.core.localizations.keys.USER_IS_STILL_ATTACHED
  • Example Message: This user is still attached to documents and cannot be deleted