Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
userdocs:travelwise:data_loading:flight:pnr_data:autoproductrules [2014/05/20 00:21]
dokuwiki_sync created
userdocs:travelwise:data_loading:flight:pnr_data:autoproductrules [2015/06/05 02:21] (current)
dokuwiki_sync
Line 1: Line 1:
-====== Autoproduct rules/prices ======+====== Autoproduct rules and prices ======
  
-In old version of //​Travelwise (VB6)// there is an 'Auto Fee' module which is moved to //​Travelwise.NET Application//​ and improved there. +In old version of //​Travelwise (VB6)// there is an //'Auto Fee' module// which is moved to //​Travelwise.NET Application//​ and improved there. 
-Up to now it works only for //flight segments// due to specific rules which can be applied. Autoproduct rules are validated automatically and prices are added on each attempt to create a new offer/​invoice.+Up to now it works only for //flight segments// due to specific rules. Autoproduct rules are validated automatically and prices are added on each attempt to create a new offer/​invoice.
  
-===== How rules are applied ​=====+===== Define Conditions ​===== 
 +**Navigation:​** //Tools -> Products -> '​Autoproduct condition'//​ tab 
 +{{:​userdocs:​travelwise:​data_loading:​flight:​pnr_data:​autoproducts.png?​nolink|}}
  
-In case rule is empty it means that all values for this rule are OK.+==== Order Conditions ==== 
 + 
 +**1. Invoice is Flight only** 
 +if product marked with this, it is added to every invoice/​offer if 
 +- invoice contains at least one product of category with code Air or Flight 
 +- invoice contains no products with Ground Arrangement sign. 
 +  
 +**2. Invoice has Ground Arrangement** 
 +if product marked with this, it is added to every invoice/​offer if it has one or more product with Ground Arrangement. sign. 
 +No matter if it has IATA or no.. 
 +  
 +**3. Order has Generic Package** 
 +if product marked with this, it is added to new offer/​invoice if Order has generic package, which means all issued invoices in this order plus new offer being generated contains 
 +- Air product (Air or Flight category) with positive total and Ground Arrangement product with positive total 
 +OR 
 +- 2 different Ground Arrangement products with positive totals. 
 +Positive total means it takes all lines in all invoices within the order, groups by productID, summarizes total sell price. 
 +  
 +**'​Once per Order'​** sign 
 +Is optional sign for each of 3 main signs, and it works as following:​ 
 +if the product being added to invoices (not offers!) in the order already, and sum of all lines is positive, then product is not added to new offer. 
 +**Example:​** //AG product is autoproduct for: invoice has ground arrangement,​ once per order.. New offer contains HTL line, and AG gets added, invoice issued. 
 +Make new invoice for another HTL - once per order should find the line of AG and not add it again to the new invoice. 
 +Make Credit Note for first invoice, issue.. then we get one more AG line negative to the first line. 
 +Make new offer with HTL - AG total in order is 0 - means product does not exist in order, and should be added again!// 
 + 
 +==== Rules for products: SI, AG, GA ==== 
 +//(in Billetkontoret A/S)// 
 + 
 +SI, AG should be in all Orders. 
 +   
 +All //'​Flight only'//​ invoices – add SI, AG  
 +(There can be several SI, AG in different invoices in the same Order). 
 +   
 +All //'​Ground Arrangement'//​ 
 +– add SI,AG if SI, AG have NOT been added on other invoices in the Order;  
 +– do not add SI,AG, if SI AG have already been added to an invoice in the Order.  
 +   
 +GA should be in all orders which contain two different product codes with ground arrangement;​  
 +GA should be in all orders which contain product '​IATA'​ and at least one product with ground arrangement. 
 + 
 +Whenever new Invoice is generated the system checks conditions within all issued Invoices in the Order and lines on the current Offer. And based on that selection the rules are applied for flight only, ground arrangements or generic package. Each product is added only once per Order. For example, in '​flight-only'​ Orders for Offers without IATA lines (and no ground arrangements) without already added SI product, this product gets included in Invoice. 
 +==== Autoproduct Prices for Triggered Products ==== 
 +In case rule is emptyit means that all values for this rule are OK.
 {{:​userdocs:​travelwise:​data_loading:​flight:​pnr_data:​rules.png|}} {{:​userdocs:​travelwise:​data_loading:​flight:​pnr_data:​rules.png|}}
   * Fee Region   * Fee Region
Line 12: Line 57:
   * Airline   * Airline
 All airlines are taken from PNR. In each flight segment there is only one airline. But there can be lots of airlines in one PNR theoretically. Therefore, if all existing airlines within connected ticket match airline from rule - then it is OK. All airlines are taken from PNR. In each flight segment there is only one airline. But there can be lots of airlines in one PNR theoretically. Therefore, if all existing airlines within connected ticket match airline from rule - then it is OK.
-  * Ticket ​classes+  * Ticket ​Classes
 Ticket class can be also different theoretically. So if all ticket classes, listed by comma, in rule match the classes from PNR segment within connected tickets - then it is OK. Ticket class can be also different theoretically. So if all ticket classes, listed by comma, in rule match the classes from PNR segment within connected tickets - then it is OK.
   * Customer ​ Type   * Customer ​ Type
-Customer which is connected to the Order where you are trying to create an offer/​invoice has its own customer type. So that if selected customer types (on customer level) include the one from the rule - then it is OK.+Customer which is connected to the Orderwhere you are trying to create an offer/​invoicehas its own customer type. So that if selected customer types (on customer level) include the one from the rule - then it is OK.
   * Order type   * Order type