<?php

// THE EXISTING ORDER DEFAULT VALUES //////////////////////////////////////////////////////////////
// service code
$CFG['Orders']['Services']['defaultValues']['existingOrder']['serviceCode'] = 'k';
// copy date interval from the previous service
$CFG['Orders']['Services']['defaultValues']['existingOrder']['copyPreviousService']['dates'] = true;
// copy departure the previous service
$CFG['Orders']['Services']['defaultValues']['existingOrder']['copyPreviousService']['departure'] = true;
// copy destination from the previous service
$CFG['Orders']['Services']['defaultValues']['existingOrder']['copyPreviousService']['destination'] = true;
// copy agency cost center from the previous service
$CFG['Orders']['Services']['defaultValues']['existingOrder']['copyPreviousService']['agencyCostCenter'] = true;
// remarks
$CFG['Orders']['Services']['defaultValues']['existingOrder']['remarks'] = '';
// allow the input of offers on manual services
$CFG['Orders']['Services']['defaultValues']['existingOrder']['allowOfferDefinition'] = true;
// offer operation: '', 'insert', 'insert+choose', 'insert+choose+confirm'
$CFG['Orders']['Services']['defaultValues']['existingOrder']['offerOperation'] = '';
// offer profile applying
$CFG['Orders']['Services']['defaultValues']['existingOrder']['offerProfile'] = ['commission'=>true, 'discount'=>true, 'serviceFee'=>true,];


// THE NEW ORDER DEFAULT VALUES ///////////////////////////////////////////////////////////////////
// service code
$CFG['Orders']['Services']['defaultValues']['newOrder']['serviceCode'] = 'k';
// copy date interval from the previous service
$CFG['Orders']['Services']['defaultValues']['newOrder']['copyPreviousService']['dates'] = true;
// copy departure the previous service
$CFG['Orders']['Services']['defaultValues']['newOrder']['copyPreviousService']['departure'] = true;
// copy destination from the previous service
$CFG['Orders']['Services']['defaultValues']['newOrder']['copyPreviousService']['destination'] = true;
// copy agency cost center from the previous service
$CFG['Orders']['Services']['defaultValues']['newOrder']['copyPreviousService']['agencyCostCenter'] = true;
// remarks
$CFG['Orders']['Services']['defaultValues']['newOrder']['remarks'] = '';
// allow the input of offers on manual services
$CFG['Orders']['Services']['defaultValues']['newOrder']['allowOfferDefinition'] = true;
// offer operation: '', 'insert', 'insert+choose', 'insert+choose+confirm'
$CFG['Orders']['Services']['defaultValues']['newOrder']['offerOperation'] = '';
// offer profile applying
$CFG['Orders']['Services']['defaultValues']['newOrder']['offerProfile'] = ['commission'=>true, 'discount'=>true, 'serviceFee'=>true,];


// DEFAULT OFFER FIELDS ///////////////////////////////////////////////////////////////////////////
// offer discount bulk source
$CFG['Orders']['Services']['defaultValues']['offerFields']['discountPercentSource'] = 'servicePrice';
// offer service fee bulk source
$CFG['Orders']['Services']['defaultValues']['offerFields']['serviceFeeMode'] = 'value';
// offer serviceFee percent source
$CFG['Orders']['Services']['defaultValues']['offerFields']['serviceFeePercentSource'] = 'servicePrice';


// IMPORTED SERVICES //////////////////////////////////////////////////////////////////////////////
// the default autoInsert passenger type
$CFG['Orders']['Services']['defaultValues']['importedService']['autoInsertPassengerType'] = 'a'; // adult
// the default undefined passenger type
$CFG['Orders']['Services']['defaultValues']['importedService']['undefinedPassengerType'] = 'a'; // adult
// the default insert type for imported passengers: manualSelect, autoInsert, selectIfOneOrAutoInsert (if one matched psg, it is selected, otherwise it is set to autoInsert)
$CFG['Orders']['Services']['defaultValues']['importedService']['passengerInsertType'] = 'manualSelect';
// if no matches from the imported service info - rewrite with default values
$CFG['Orders']['Services']['defaultValues']['importedService']['setOnNoMatch']['user'] = true; // sets the current user
$CFG['Orders']['Services']['defaultValues']['importedService']['setOnNoMatch']['agencyCostCenter'] = true; // sets the default agency cost center

// force the first available corporate as owner when processing an imported service
$CFG['Orders']['Services']['defaultValues']['importedService']['forceFirstAvailableCorporateAsOwner'] = false;
