Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
userdocs:travelwise:data_loading:flight:pnr_data:autoproductrules [2014/05/20 00:39] dokuwiki_sync |
userdocs:travelwise:data_loading:flight:pnr_data:autoproductrules [2015/06/05 02:21] (current) dokuwiki_sync |
||
---|---|---|---|
Line 4: | Line 4: | ||
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. | 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|}} | ||
+ | ==== 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 empty, it means that all values for this rule are OK. | In case rule is empty, it 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|}} |