Пример #1
0
 def is_valid_record(record):
     digit_fields = ('SALES_ORDER_NO', )
     for key in SalesOrderSynchronizer.REQUIRED_KEYS:
         if not (record[key] and OrderSynchronizer._is_all_digit(
                 digit_fields, key, record)):
             return False
     return True
 def is_valid_record(record):
     digit_fields = ('RELEASE_ORDER_NUMBER', 'SO_NUMBER', 'PO_NUMBER')
     for key in ReleaseOrderSynchronizer.REQUIRED_KEYS:
         if not (record[key] and OrderSynchronizer._is_all_digit(digit_fields, key, record)):
             logger.info('Invalid release order: %s', record)
             return False
     return True
Пример #3
0
 def is_valid_record(record):
     digit_fields = ('SALES_ORDER_NO',)
     for key in SalesOrderSynchronizer.REQUIRED_KEYS:
         if not (record[key] and OrderSynchronizer._is_all_digit(digit_fields, key, record)):
             logger.info('Invalid sales order: %s', record)
             return False
     return True
Пример #4
0
 def is_valid_record(record):
     digit_fields = ('RELEASE_ORDER_NUMBER', 'SO_NUMBER', 'PO_NUMBER')
     for key in ReleaseOrderSynchronizer.REQUIRED_KEYS:
         if not (record[key] and OrderSynchronizer._is_all_digit(
                 digit_fields, key, record)):
             return False
     return True
 def is_valid_record(record):
     digit_fields = ('SO_NUMBER', 'PO_NUMBER')
     for key in PurchaseOrderSynchronizer.REQUIRED_KEYS:
         if not record[key] and OrderSynchronizer._is_all_digit(digit_fields, key, record):
             return False
     if not record['PO_TYPE'] in PurchaseOrderSynchronizer.SUPPORTED_PO_TYPE:
         return False
     return True
 def is_valid_record(record):
     digit_fields = ('SO_NUMBER', 'PO_NUMBER')
     for key in PurchaseOrderSynchronizer.REQUIRED_KEYS:
         if not record[key] and OrderSynchronizer._is_all_digit(digit_fields, key, record):
             logger.info('Invalid purchase order: %s', record)
             return False
     if not record['PO_TYPE'] in PurchaseOrderSynchronizer.SUPPORTED_PO_TYPE:
         logger.info('Invalid purchase order with wrong type: %s', record)
         return False
     return True
Пример #7
0
 def is_valid_record(record):
     digit_fields = ('SO_NUMBER', 'PO_NUMBER')
     for key in PurchaseOrderSynchronizer.REQUIRED_KEYS:
         if not record[key] and OrderSynchronizer._is_all_digit(
                 digit_fields, key, record):
             return False
     if not record[
             'PO_TYPE'] in PurchaseOrderSynchronizer.SUPPORTED_PO_TYPE:
         return False
     return True
Пример #8
0
 def is_valid_record(record):
     digit_fields = ('SO_NUMBER', 'PO_NUMBER')
     for key in PurchaseOrderSynchronizer.REQUIRED_KEYS:
         if not record[key] and OrderSynchronizer._is_all_digit(
                 digit_fields, key, record):
             logger.info('Invalid purchase order: %s', record)
             return False
     if not record[
             'PO_TYPE'] in PurchaseOrderSynchronizer.SUPPORTED_PO_TYPE:
         logger.info('Invalid purchase order with wrong type: %s',
                     record)
         return False
     return True