SAVi Invoice Export
Introduction
An export file is required to process invoices for Paybill customers. The export file contains all the invoices (Credits are not included) created within ViSN for the following rate cards
- The rate card types include:
- ViSN with DI Network and Paybill
- ViSN Hybrid - Customer’s Network and DI Network with Paybill This is not fully implemented
- ViSN
Purpose
Invoices for the Paybill suppliers are processed using this exports. Savi exports file is imported into Quickbooks for creating bills for each suppliers. Suppliers will be paid by the information imported into Quickbooks.
Since a daily manual process was laborious and error prone, a direct API integration was introduced in the mid of May 2024.
SAVi Invoice Export exports may be deprecated once the API integration has been battle tested.
File format
comma-separated values - *.csv
Fields
Column Position | Header Name | Description | Datatype | Validation | Max length | Mandatory | Default Value | Example |
---|---|---|---|---|---|---|---|---|
A | Bill Number | Supplier Invoice Number | string | A-Z, 0-9 | 20 | Yes | Invoice8794 | |
B | Supplier Name | Service Unit Name | string | A-Z, 0-9 | 50 | Yes | Grand Repair 01 | |
C | Bill Date | Supplier Invoice Date - Tax Point Date | string | Date (dd/MM/yyyy format) | 10 | Yes | 02/11/2022 | |
D | Due Date | leave blank | ||||||
E | Terms | leave blank | ||||||
F | Location | leave blank | ||||||
G | Memo | ViSN Enquiry Number | number | 0-9 | 10 | Yes | 8794 | |
H | Account | Lease Customer Name | string | A-Z, 0-9 | 50 | Yes | Next Fleet Service | |
I | Line Description | Job line type | string | A-Z | 100 | Yes | MAINTENANCE REPAIR | |
J | Line Amount | Supplier invoice job line amount (pre-VAT) | number | 0-9 | 9 | Yes | 69.96 | |
K | Line Tax Code | Supplier invoice line VAT Rate | string | A-Z, 0-9 and special characters | 20 | Yes | Standard -20% | |
L | Line Tax Amount | leave blank | ||||||
M | Type | For invoiced joblines (I) For credited joblines (C) | string | A-Z | 1 | Yes | C | |
N | VRN | Vehicle Registration Number (VRM) | string | A-Z, 0-9 | 10 | Yes | DU20DDC | |
O | Currency | Enquiry Currency Type (Use customer currency type as per DI settings at the time of creating an enquiry) | string | A-Z, | 5 | Yes | For UK customers - GBP For Ireland customers - Euro | GBP |
Data source
Once an invoice is created for an enquiry, Savi data is generated and prepared for export
The generated data is maintained in Firebase at
doc: /leasecompany/[leasecompanyId]/exports/[year]/[month]/[date]/enquiries/[enquiryId]
attribute: "SAViData"
sample data:
SAViData:["Invoice No-10174,Dreamline Group,22/04/2024,,,,10174,Dreamline Car Leasing,SERVICE,830.92,STANDARD -20%,,I,RX67OAS,GBP"]
Setup Required
A Scheduler is required to merge all the SAVi data generated for all enquiries that were invoiced for the day.
- Name: generateSAViPayBillExport
- Region: europe-west2
- Frequency: 30 23 * * *
- TimeZone: GMT London
- Topic: projects/biddirect-2/topics/generateSAViPayBillExport
- Message body: a JSON object including the following parameters
- dateTimeStamp: in format yyyy-MMM-dd ex 2022-Sep-30 , when skipped it will default to current date
Debugging Steps
Ensure the enquiry is successfully invoiced.
Check the rate card type in the customer-level data in the admin portal:
Confirm if the rate card type is one of the following:
VISN_NETWORK_OFFERING_SAVI
(ViSN with DI Network and Paybill)VISN
(ViSN with Customer’s Network)COST_TYPE_HYBRID_VISN
(ViSN Hybrid - Customer’s Network and DI Network with Paybill)
Check the current "Paybill" name in the lease-side supplier configuration:
Navigate to the lease company:
Open Settings from the Main Menu.
Select Supplier from the Sub Menu.
Locate the supplier providing the service.
Click View to access the supplier details page.
Verify the "Paybill" value.
Verify the Paybill and RateCard type values during enquiry creation:
Check the enquiry data for the following:
Paybill value
RateCard type
Enquiry Level: /accounts/{accountId}/serviceUnits/{serviceUnitId}/enquiries/{enquiryId}
Invoice Export Level : /accounts/{accountId}/serviceUnits/{serviceUnitId}/enquiries/{enquiryId}/invoices/export
- If the rate card type is "VISN_NETWORK_OFFERING_SAVI" or "VISN", proceed to Step 6
- If the rate card type is "COST_TYPE_HYBRID_VISN", continue with the next step.
- If the rate card type is anything other than the above options, the enquiry record should not appear in the SAVi export report.
Determine Paybill value handling:
- Direct Paybill: The enquiry record should not appear in the SAVi export report.
- ViSN Paybill: The enquiry record should appear in the SAVi export report. Proceed with further debugging.
Check Firebase SAVi export node creation:
Verify the export data is created at the expected path:
/leasecompany/{leasecompanyId}/exports/{year}/{month}/{date}/enquiries/{enquiryId}
If all steps are verified and no issue is identified:
- Raise a bug to investigate the issue further.
Downloading SAVi Invoice export file
Savi Invoice export file can be downloaded via DI Admin for a given day
Status: Accepted
Category: Protected
Authored By: Jeyakumar Arunagiri on Feb 09, 2024
Revisions
19 Apr, 2024 - Renamed SAVi Invoice Export label and updated details for rate card type - VN-12200
Revisions
29th May, 2024 - Modify SAVi Invoice Exports with correct information
- https://myvisn.atlassian.net/browse/VN-12863
Authored by: Vishwa Kumar
Revisions
11th Dec, 2024 - Added Debugging Steps
- https://myvisn.atlassian.net/browse/VN-15340
Authored by: Jeyakumar Arunagiri