rattail-invoice2data/templates/natural-factors/naturalfactors.yml

22 lines
819 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# -*- coding: utf-8; -*-
issuer: Natural Factors
keywords:
- Natural Factors Nutritional Products
- www.naturalfactors.com
- INVOICE
fields:
amount: Veuillez payer montant\s+(\d+\.\d+)
tables:
- start: NO. DE FACTURE
end: www.naturalfactors.com
body: \d{4}\s+(?P<invoice_number>\d+)
- start: NO. DE COMMANDE\s+DATE DE FACTURE
end: Page\s+1
body: \d+\s+(?P<date>\d\d/\d\d/\d\d)
lines:
start: Code du produit commandée\s+Qté livrée\s+Description de litem\s+Taxe\s+Prix unit courant\s+rebais\s+Prix net\s+Montant net
end: Thank you for your order!
line: (?P<sku>\w+)\s+(?P<order_quantity>\d+)\s+(?P<ship_quantity>\d+)\s+(?P<description>.+?)\s+C\s+(?P<regular_price>\d+\.\d+)\s+(?P<discount_percent>\d+)\s+(?P<net_price>\d+\.\d+)\s+(?P<net_amount>\d+\.\d+)
options:
currency: USD