copyWith method

WebApiModulesSettingsDepartmentLocationDepartmentLocation copyWith({
  1. int? id,
  2. String? departmentId,
  3. String? department,
  4. String? locationId,
  5. String? location,
  6. String? defaultOrderTypeId,
  7. String? defaultOrderType,
  8. String? projectDefaultOrderTypeId,
  9. String? projectDefaultOrderType,
  10. String? defaultTransferTypeId,
  11. String? defaultTransferType,
  12. String? glPrefix,
  13. String? glSuffix,
  14. bool? allowDecreaseOrderQuantityWhenStaged,
  15. bool? allowDecreaseOrderQuantityWhenOut,
  16. bool? autoCreditOnSalesReturn,
  17. String? depositFeeRateId,
  18. String? depositFeeRateICode,
  19. String? depositFeeRateDescription,
  20. String? flatAmountCreditInvoiceRateId,
  21. String? flatAmountCreditInvoiceRateICode,
  22. String? flatAmountCreditInvoiceRateDescription,
  23. bool? updateEstimatedStartAndStopDatesOnSubPurchaseOrders,
  24. bool? promptToUpdateEstimatedStartAndStopDatesOnSubPurchaseOrders,
  25. bool? updateBillingStartAndStopDatesOnSubPurchaseOrders,
  26. bool? promptToUpdateBillingStartAndStopDatesOnSubPurchaseOrders,
  27. String? purchaseOrderApprovalRequiredAsOf,
  28. bool? purchaseOrderRequireFirstApproval,
  29. bool? purchaseOrderRequireSecondApproval,
  30. bool? purchaseOrderAllowSecondApprovalWithoutFirstApproval,
  31. double? purchaseOrderUnapproveIncreaseAmount,
  32. double? purchaseOrderUnapproveIncreasePercent,
  33. bool? purchaseOrderPreventReceiveUnapproved,
  34. double? purchaseOrderFirstApprovalThresholdRental,
  35. double? purchaseOrderFirstApprovalThresholdSales,
  36. double? purchaseOrderFirstApprovalThresholdParts,
  37. double? purchaseOrderFirstApprovalThresholdMiscellaneous,
  38. double? purchaseOrderFirstApprovalThresholdLabor,
  39. double? purchaseOrderFirstApprovalThresholdRepair,
  40. double? purchaseOrderFirstApprovalThresholdSubRental,
  41. double? purchaseOrderFirstApprovalThresholdSubSales,
  42. double? purchaseOrderFirstApprovalThresholdSubMiscellaneous,
  43. double? purchaseOrderFirstApprovalThresholdSubLabor,
  44. double? purchaseOrderSecondApprovalThresholdRental,
  45. double? purchaseOrderSecondApprovalThresholdSales,
  46. double? purchaseOrderSecondApprovalThresholdParts,
  47. double? purchaseOrderSecondApprovalThresholdMiscellaneous,
  48. double? purchaseOrderSecondApprovalThresholdLabor,
  49. double? purchaseOrderSecondApprovalThresholdRepair,
  50. double? purchaseOrderSecondApprovalThresholdSubRental,
  51. double? purchaseOrderSecondApprovalThresholdSubSales,
  52. double? purchaseOrderSecondApprovalThresholdSubMiscellaneous,
  53. double? purchaseOrderSecondApprovalThresholdSubLabor,
  54. bool? completeRentalWithLAndDOrder,
  55. bool? disableCrewValidation,
  56. bool? storefrontEnableInventoryInquiryEmails,
  57. String? storefrontInventoryInquiryEmailToAddress,
  58. bool? storefrontEnableQuoteRequestEmails,
  59. String? storefrontQuoteRequestEmailToAddress,
  60. bool? useResponsiblePerson,
  61. bool? requireResponsiblePerson,
  62. String? vendorInvoiceModificationsPushToPo,
  63. bool? splitRentalLineItemWhenCheckedInEarly,
  64. bool? inactive,
  65. bool? createInvoiceForItemsAddedAfterPrebill,
  66. bool? createCreditForPreBilledItemsReturnedEarly,
  67. String? automaticallyCreateCreditForPreBilledItemsReturnedEarly,
  68. bool? doNotBillDayWhenItemsAreCheckedInByCertainTime,
  69. String? checkInByTimeToAvoidBilling,
  70. bool? createInvoiceForItemsCheckedInBeforeEstimatedStopDate,
  71. String? automaticallyCreateInvoiceForItemsCheckedInBeforeEstimatedStopDate,
  72. bool? automaticallyCompleteRepairOrderWhenAllItemsReleased,
  73. String? setInvoiceDate,
  74. String? creditInvoiceNumberFrom,
  75. bool? orderStaysActiveWithSubsInHolding,
  76. bool? assignConsignorBeforeStaging,
  77. String? dateStamp,
  78. String? noInsuranceFeeRateId,
  79. String? noInsuranceFeeICode,
  80. String? noInsuranceFeeDescription,
  81. String? noInsuranceFeeBasedOn,
  82. bool? chargeNoInsuranceFee,
  83. bool? useNoInsuranceFeeThreshold,
  84. double? noInsuranceFeePercent,
  85. double? noInsuranceFeeThreshold,
  86. String? auditNote,
  87. String? recordTitle,
  88. dynamic urlIdentifier,
  89. List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>? fields,
  90. List<FwStandardDataFwCustomValue>? custom,
  91. List<FwStandardDataFwDefaultAttribute>? defaultFieldAttributes,
  92. FwStandardBusinessLogicFwBusinessLogic? original,
  93. List<FwStandardDataFwTranslatedValue>? translation,
  94. bool? hasImport,
  95. bool? hasDocuments,
  96. String? createdByUserId,
  97. String? createdByUserName,
  98. String? createdDateTime,
  99. String? modifiedByUserId,
  100. String? modifiedByUserName,
  101. String? modifiedDateTime,
})

Implementation

WebApiModulesSettingsDepartmentLocationDepartmentLocation copyWith({
  int? id,
  String? departmentId,
  String? department,
  String? locationId,
  String? location,
  String? defaultOrderTypeId,
  String? defaultOrderType,
  String? projectDefaultOrderTypeId,
  String? projectDefaultOrderType,
  String? defaultTransferTypeId,
  String? defaultTransferType,
  String? glPrefix,
  String? glSuffix,
  bool? allowDecreaseOrderQuantityWhenStaged,
  bool? allowDecreaseOrderQuantityWhenOut,
  bool? autoCreditOnSalesReturn,
  String? depositFeeRateId,
  String? depositFeeRateICode,
  String? depositFeeRateDescription,
  String? flatAmountCreditInvoiceRateId,
  String? flatAmountCreditInvoiceRateICode,
  String? flatAmountCreditInvoiceRateDescription,
  bool? updateEstimatedStartAndStopDatesOnSubPurchaseOrders,
  bool? promptToUpdateEstimatedStartAndStopDatesOnSubPurchaseOrders,
  bool? updateBillingStartAndStopDatesOnSubPurchaseOrders,
  bool? promptToUpdateBillingStartAndStopDatesOnSubPurchaseOrders,
  String? purchaseOrderApprovalRequiredAsOf,
  bool? purchaseOrderRequireFirstApproval,
  bool? purchaseOrderRequireSecondApproval,
  bool? purchaseOrderAllowSecondApprovalWithoutFirstApproval,
  double? purchaseOrderUnapproveIncreaseAmount,
  double? purchaseOrderUnapproveIncreasePercent,
  bool? purchaseOrderPreventReceiveUnapproved,
  double? purchaseOrderFirstApprovalThresholdRental,
  double? purchaseOrderFirstApprovalThresholdSales,
  double? purchaseOrderFirstApprovalThresholdParts,
  double? purchaseOrderFirstApprovalThresholdMiscellaneous,
  double? purchaseOrderFirstApprovalThresholdLabor,
  double? purchaseOrderFirstApprovalThresholdRepair,
  double? purchaseOrderFirstApprovalThresholdSubRental,
  double? purchaseOrderFirstApprovalThresholdSubSales,
  double? purchaseOrderFirstApprovalThresholdSubMiscellaneous,
  double? purchaseOrderFirstApprovalThresholdSubLabor,
  double? purchaseOrderSecondApprovalThresholdRental,
  double? purchaseOrderSecondApprovalThresholdSales,
  double? purchaseOrderSecondApprovalThresholdParts,
  double? purchaseOrderSecondApprovalThresholdMiscellaneous,
  double? purchaseOrderSecondApprovalThresholdLabor,
  double? purchaseOrderSecondApprovalThresholdRepair,
  double? purchaseOrderSecondApprovalThresholdSubRental,
  double? purchaseOrderSecondApprovalThresholdSubSales,
  double? purchaseOrderSecondApprovalThresholdSubMiscellaneous,
  double? purchaseOrderSecondApprovalThresholdSubLabor,
  bool? completeRentalWithLAndDOrder,
  bool? disableCrewValidation,
  bool? storefrontEnableInventoryInquiryEmails,
  String? storefrontInventoryInquiryEmailToAddress,
  bool? storefrontEnableQuoteRequestEmails,
  String? storefrontQuoteRequestEmailToAddress,
  bool? useResponsiblePerson,
  bool? requireResponsiblePerson,
  String? vendorInvoiceModificationsPushToPo,
  bool? splitRentalLineItemWhenCheckedInEarly,
  bool? inactive,
  bool? createInvoiceForItemsAddedAfterPrebill,
  bool? createCreditForPreBilledItemsReturnedEarly,
  String? automaticallyCreateCreditForPreBilledItemsReturnedEarly,
  bool? doNotBillDayWhenItemsAreCheckedInByCertainTime,
  String? checkInByTimeToAvoidBilling,
  bool? createInvoiceForItemsCheckedInBeforeEstimatedStopDate,
  String? automaticallyCreateInvoiceForItemsCheckedInBeforeEstimatedStopDate,
  bool? automaticallyCompleteRepairOrderWhenAllItemsReleased,
  String? setInvoiceDate,
  String? creditInvoiceNumberFrom,
  bool? orderStaysActiveWithSubsInHolding,
  bool? assignConsignorBeforeStaging,
  String? dateStamp,
  String? noInsuranceFeeRateId,
  String? noInsuranceFeeICode,
  String? noInsuranceFeeDescription,
  String? noInsuranceFeeBasedOn,
  bool? chargeNoInsuranceFee,
  bool? useNoInsuranceFeeThreshold,
  double? noInsuranceFeePercent,
  double? noInsuranceFeeThreshold,
  String? auditNote,
  String? recordTitle,
  dynamic urlIdentifier,
  List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>? fields,
  List<FwStandardDataFwCustomValue>? custom,
  List<FwStandardDataFwDefaultAttribute>? defaultFieldAttributes,
  FwStandardBusinessLogicFwBusinessLogic? original,
  List<FwStandardDataFwTranslatedValue>? translation,
  bool? hasImport,
  bool? hasDocuments,
  String? createdByUserId,
  String? createdByUserName,
  String? createdDateTime,
  String? modifiedByUserId,
  String? modifiedByUserName,
  String? modifiedDateTime,
}) {
  return WebApiModulesSettingsDepartmentLocationDepartmentLocation(
    id: id ?? this.id,
    departmentId: departmentId ?? this.departmentId,
    department: department ?? this.department,
    locationId: locationId ?? this.locationId,
    location: location ?? this.location,
    defaultOrderTypeId: defaultOrderTypeId ?? this.defaultOrderTypeId,
    defaultOrderType: defaultOrderType ?? this.defaultOrderType,
    projectDefaultOrderTypeId:
        projectDefaultOrderTypeId ?? this.projectDefaultOrderTypeId,
    projectDefaultOrderType:
        projectDefaultOrderType ?? this.projectDefaultOrderType,
    defaultTransferTypeId:
        defaultTransferTypeId ?? this.defaultTransferTypeId,
    defaultTransferType: defaultTransferType ?? this.defaultTransferType,
    glPrefix: glPrefix ?? this.glPrefix,
    glSuffix: glSuffix ?? this.glSuffix,
    allowDecreaseOrderQuantityWhenStaged:
        allowDecreaseOrderQuantityWhenStaged ??
        this.allowDecreaseOrderQuantityWhenStaged,
    allowDecreaseOrderQuantityWhenOut:
        allowDecreaseOrderQuantityWhenOut ??
        this.allowDecreaseOrderQuantityWhenOut,
    autoCreditOnSalesReturn:
        autoCreditOnSalesReturn ?? this.autoCreditOnSalesReturn,
    depositFeeRateId: depositFeeRateId ?? this.depositFeeRateId,
    depositFeeRateICode: depositFeeRateICode ?? this.depositFeeRateICode,
    depositFeeRateDescription:
        depositFeeRateDescription ?? this.depositFeeRateDescription,
    flatAmountCreditInvoiceRateId:
        flatAmountCreditInvoiceRateId ?? this.flatAmountCreditInvoiceRateId,
    flatAmountCreditInvoiceRateICode:
        flatAmountCreditInvoiceRateICode ??
        this.flatAmountCreditInvoiceRateICode,
    flatAmountCreditInvoiceRateDescription:
        flatAmountCreditInvoiceRateDescription ??
        this.flatAmountCreditInvoiceRateDescription,
    updateEstimatedStartAndStopDatesOnSubPurchaseOrders:
        updateEstimatedStartAndStopDatesOnSubPurchaseOrders ??
        this.updateEstimatedStartAndStopDatesOnSubPurchaseOrders,
    promptToUpdateEstimatedStartAndStopDatesOnSubPurchaseOrders:
        promptToUpdateEstimatedStartAndStopDatesOnSubPurchaseOrders ??
        this.promptToUpdateEstimatedStartAndStopDatesOnSubPurchaseOrders,
    updateBillingStartAndStopDatesOnSubPurchaseOrders:
        updateBillingStartAndStopDatesOnSubPurchaseOrders ??
        this.updateBillingStartAndStopDatesOnSubPurchaseOrders,
    promptToUpdateBillingStartAndStopDatesOnSubPurchaseOrders:
        promptToUpdateBillingStartAndStopDatesOnSubPurchaseOrders ??
        this.promptToUpdateBillingStartAndStopDatesOnSubPurchaseOrders,
    purchaseOrderApprovalRequiredAsOf:
        purchaseOrderApprovalRequiredAsOf ??
        this.purchaseOrderApprovalRequiredAsOf,
    purchaseOrderRequireFirstApproval:
        purchaseOrderRequireFirstApproval ??
        this.purchaseOrderRequireFirstApproval,
    purchaseOrderRequireSecondApproval:
        purchaseOrderRequireSecondApproval ??
        this.purchaseOrderRequireSecondApproval,
    purchaseOrderAllowSecondApprovalWithoutFirstApproval:
        purchaseOrderAllowSecondApprovalWithoutFirstApproval ??
        this.purchaseOrderAllowSecondApprovalWithoutFirstApproval,
    purchaseOrderUnapproveIncreaseAmount:
        purchaseOrderUnapproveIncreaseAmount ??
        this.purchaseOrderUnapproveIncreaseAmount,
    purchaseOrderUnapproveIncreasePercent:
        purchaseOrderUnapproveIncreasePercent ??
        this.purchaseOrderUnapproveIncreasePercent,
    purchaseOrderPreventReceiveUnapproved:
        purchaseOrderPreventReceiveUnapproved ??
        this.purchaseOrderPreventReceiveUnapproved,
    purchaseOrderFirstApprovalThresholdRental:
        purchaseOrderFirstApprovalThresholdRental ??
        this.purchaseOrderFirstApprovalThresholdRental,
    purchaseOrderFirstApprovalThresholdSales:
        purchaseOrderFirstApprovalThresholdSales ??
        this.purchaseOrderFirstApprovalThresholdSales,
    purchaseOrderFirstApprovalThresholdParts:
        purchaseOrderFirstApprovalThresholdParts ??
        this.purchaseOrderFirstApprovalThresholdParts,
    purchaseOrderFirstApprovalThresholdMiscellaneous:
        purchaseOrderFirstApprovalThresholdMiscellaneous ??
        this.purchaseOrderFirstApprovalThresholdMiscellaneous,
    purchaseOrderFirstApprovalThresholdLabor:
        purchaseOrderFirstApprovalThresholdLabor ??
        this.purchaseOrderFirstApprovalThresholdLabor,
    purchaseOrderFirstApprovalThresholdRepair:
        purchaseOrderFirstApprovalThresholdRepair ??
        this.purchaseOrderFirstApprovalThresholdRepair,
    purchaseOrderFirstApprovalThresholdSubRental:
        purchaseOrderFirstApprovalThresholdSubRental ??
        this.purchaseOrderFirstApprovalThresholdSubRental,
    purchaseOrderFirstApprovalThresholdSubSales:
        purchaseOrderFirstApprovalThresholdSubSales ??
        this.purchaseOrderFirstApprovalThresholdSubSales,
    purchaseOrderFirstApprovalThresholdSubMiscellaneous:
        purchaseOrderFirstApprovalThresholdSubMiscellaneous ??
        this.purchaseOrderFirstApprovalThresholdSubMiscellaneous,
    purchaseOrderFirstApprovalThresholdSubLabor:
        purchaseOrderFirstApprovalThresholdSubLabor ??
        this.purchaseOrderFirstApprovalThresholdSubLabor,
    purchaseOrderSecondApprovalThresholdRental:
        purchaseOrderSecondApprovalThresholdRental ??
        this.purchaseOrderSecondApprovalThresholdRental,
    purchaseOrderSecondApprovalThresholdSales:
        purchaseOrderSecondApprovalThresholdSales ??
        this.purchaseOrderSecondApprovalThresholdSales,
    purchaseOrderSecondApprovalThresholdParts:
        purchaseOrderSecondApprovalThresholdParts ??
        this.purchaseOrderSecondApprovalThresholdParts,
    purchaseOrderSecondApprovalThresholdMiscellaneous:
        purchaseOrderSecondApprovalThresholdMiscellaneous ??
        this.purchaseOrderSecondApprovalThresholdMiscellaneous,
    purchaseOrderSecondApprovalThresholdLabor:
        purchaseOrderSecondApprovalThresholdLabor ??
        this.purchaseOrderSecondApprovalThresholdLabor,
    purchaseOrderSecondApprovalThresholdRepair:
        purchaseOrderSecondApprovalThresholdRepair ??
        this.purchaseOrderSecondApprovalThresholdRepair,
    purchaseOrderSecondApprovalThresholdSubRental:
        purchaseOrderSecondApprovalThresholdSubRental ??
        this.purchaseOrderSecondApprovalThresholdSubRental,
    purchaseOrderSecondApprovalThresholdSubSales:
        purchaseOrderSecondApprovalThresholdSubSales ??
        this.purchaseOrderSecondApprovalThresholdSubSales,
    purchaseOrderSecondApprovalThresholdSubMiscellaneous:
        purchaseOrderSecondApprovalThresholdSubMiscellaneous ??
        this.purchaseOrderSecondApprovalThresholdSubMiscellaneous,
    purchaseOrderSecondApprovalThresholdSubLabor:
        purchaseOrderSecondApprovalThresholdSubLabor ??
        this.purchaseOrderSecondApprovalThresholdSubLabor,
    completeRentalWithLAndDOrder:
        completeRentalWithLAndDOrder ?? this.completeRentalWithLAndDOrder,
    disableCrewValidation:
        disableCrewValidation ?? this.disableCrewValidation,
    storefrontEnableInventoryInquiryEmails:
        storefrontEnableInventoryInquiryEmails ??
        this.storefrontEnableInventoryInquiryEmails,
    storefrontInventoryInquiryEmailToAddress:
        storefrontInventoryInquiryEmailToAddress ??
        this.storefrontInventoryInquiryEmailToAddress,
    storefrontEnableQuoteRequestEmails:
        storefrontEnableQuoteRequestEmails ??
        this.storefrontEnableQuoteRequestEmails,
    storefrontQuoteRequestEmailToAddress:
        storefrontQuoteRequestEmailToAddress ??
        this.storefrontQuoteRequestEmailToAddress,
    useResponsiblePerson: useResponsiblePerson ?? this.useResponsiblePerson,
    requireResponsiblePerson:
        requireResponsiblePerson ?? this.requireResponsiblePerson,
    vendorInvoiceModificationsPushToPo:
        vendorInvoiceModificationsPushToPo ??
        this.vendorInvoiceModificationsPushToPo,
    splitRentalLineItemWhenCheckedInEarly:
        splitRentalLineItemWhenCheckedInEarly ??
        this.splitRentalLineItemWhenCheckedInEarly,
    inactive: inactive ?? this.inactive,
    createInvoiceForItemsAddedAfterPrebill:
        createInvoiceForItemsAddedAfterPrebill ??
        this.createInvoiceForItemsAddedAfterPrebill,
    createCreditForPreBilledItemsReturnedEarly:
        createCreditForPreBilledItemsReturnedEarly ??
        this.createCreditForPreBilledItemsReturnedEarly,
    automaticallyCreateCreditForPreBilledItemsReturnedEarly:
        automaticallyCreateCreditForPreBilledItemsReturnedEarly ??
        this.automaticallyCreateCreditForPreBilledItemsReturnedEarly,
    doNotBillDayWhenItemsAreCheckedInByCertainTime:
        doNotBillDayWhenItemsAreCheckedInByCertainTime ??
        this.doNotBillDayWhenItemsAreCheckedInByCertainTime,
    checkInByTimeToAvoidBilling:
        checkInByTimeToAvoidBilling ?? this.checkInByTimeToAvoidBilling,
    createInvoiceForItemsCheckedInBeforeEstimatedStopDate:
        createInvoiceForItemsCheckedInBeforeEstimatedStopDate ??
        this.createInvoiceForItemsCheckedInBeforeEstimatedStopDate,
    automaticallyCreateInvoiceForItemsCheckedInBeforeEstimatedStopDate:
        automaticallyCreateInvoiceForItemsCheckedInBeforeEstimatedStopDate ??
        this.automaticallyCreateInvoiceForItemsCheckedInBeforeEstimatedStopDate,
    automaticallyCompleteRepairOrderWhenAllItemsReleased:
        automaticallyCompleteRepairOrderWhenAllItemsReleased ??
        this.automaticallyCompleteRepairOrderWhenAllItemsReleased,
    setInvoiceDate: setInvoiceDate ?? this.setInvoiceDate,
    creditInvoiceNumberFrom:
        creditInvoiceNumberFrom ?? this.creditInvoiceNumberFrom,
    orderStaysActiveWithSubsInHolding:
        orderStaysActiveWithSubsInHolding ??
        this.orderStaysActiveWithSubsInHolding,
    assignConsignorBeforeStaging:
        assignConsignorBeforeStaging ?? this.assignConsignorBeforeStaging,
    dateStamp: dateStamp ?? this.dateStamp,
    noInsuranceFeeRateId: noInsuranceFeeRateId ?? this.noInsuranceFeeRateId,
    noInsuranceFeeICode: noInsuranceFeeICode ?? this.noInsuranceFeeICode,
    noInsuranceFeeDescription:
        noInsuranceFeeDescription ?? this.noInsuranceFeeDescription,
    noInsuranceFeeBasedOn:
        noInsuranceFeeBasedOn ?? this.noInsuranceFeeBasedOn,
    chargeNoInsuranceFee: chargeNoInsuranceFee ?? this.chargeNoInsuranceFee,
    useNoInsuranceFeeThreshold:
        useNoInsuranceFeeThreshold ?? this.useNoInsuranceFeeThreshold,
    noInsuranceFeePercent:
        noInsuranceFeePercent ?? this.noInsuranceFeePercent,
    noInsuranceFeeThreshold:
        noInsuranceFeeThreshold ?? this.noInsuranceFeeThreshold,
    auditNote: auditNote ?? this.auditNote,
    recordTitle: recordTitle ?? this.recordTitle,
    urlIdentifier: urlIdentifier ?? this.urlIdentifier,
    fields: fields ?? this.fields,
    custom: custom ?? this.custom,
    defaultFieldAttributes:
        defaultFieldAttributes ?? this.defaultFieldAttributes,
    original: original ?? this.original,
    translation: translation ?? this.translation,
    hasImport: hasImport ?? this.hasImport,
    hasDocuments: hasDocuments ?? this.hasDocuments,
    createdByUserId: createdByUserId ?? this.createdByUserId,
    createdByUserName: createdByUserName ?? this.createdByUserName,
    createdDateTime: createdDateTime ?? this.createdDateTime,
    modifiedByUserId: modifiedByUserId ?? this.modifiedByUserId,
    modifiedByUserName: modifiedByUserName ?? this.modifiedByUserName,
    modifiedDateTime: modifiedDateTime ?? this.modifiedDateTime,
  );
}