Default Spain export range to last seven days
This commit is contained in:
@@ -86,7 +86,7 @@ rclone lsd trafag-bi:
|
||||
rclone lsd trafag-bi:"Import/Finance"
|
||||
rclone lsd trafag-bi:"Import/Finance/Spanien"
|
||||
|
||||
Run daily range export and upload, default window yesterday until today:
|
||||
Run range export and upload with default window last 7 days until today:
|
||||
|
||||
.\Run-SpainExportAndUpload.ps1
|
||||
|
||||
@@ -94,7 +94,7 @@ Explicit range:
|
||||
|
||||
.\Run-SpainExportAndUpload.ps1 -ExportMode Range -DateFilter LineRegistrationDate -FromDate "2026-06-02" -ToDate "2026-06-03"
|
||||
|
||||
Simple starter script with default test range 2026-06-01 until 2026-06-04:
|
||||
Simple starter script with default window last 7 days until today:
|
||||
|
||||
.\Start-SpainRangeExportAndUpload.ps1
|
||||
|
||||
@@ -105,6 +105,10 @@ Same starter script with another range:
|
||||
Single-file all-in-one range export and upload.
|
||||
This file does not require Export-SageSpainSalesCsv.ps1 or Run-SpainExportAndUpload.ps1:
|
||||
|
||||
.\Run-SpainRangeExportAndUpload-AllInOne.ps1
|
||||
|
||||
Override the all-in-one default date window:
|
||||
|
||||
.\Run-SpainRangeExportAndUpload-AllInOne.ps1 -FromDate "2026-06-01" -ToDate "2026-06-04"
|
||||
|
||||
The all-in-one script checks/creates the SharePoint folder before export, uploads the generated CSV and summary, and verifies that the uploaded files are listed in SharePoint.
|
||||
|
||||
@@ -6,7 +6,7 @@ param(
|
||||
[ValidateSet("InvoiceDate", "LineRegistrationDate")]
|
||||
[string]$DateFilter = "LineRegistrationDate",
|
||||
[int]$Year = 2025,
|
||||
[datetime]$FromDate = (Get-Date).Date.AddDays(-1),
|
||||
[datetime]$FromDate = (Get-Date).Date.AddDays(-7),
|
||||
[datetime]$ToDate = (Get-Date).Date,
|
||||
[string]$BaseDirectory = "C:\Trafag\SageSpain",
|
||||
[string]$RcloneExe = "rclone",
|
||||
|
||||
+2
-2
@@ -3,8 +3,8 @@ param(
|
||||
[string]$Database = "Sage",
|
||||
[ValidateSet("InvoiceDate", "LineRegistrationDate")]
|
||||
[string]$DateFilter = "LineRegistrationDate",
|
||||
[datetime]$FromDate = "2026-06-01",
|
||||
[datetime]$ToDate = "2026-06-04",
|
||||
[datetime]$FromDate = (Get-Date).Date.AddDays(-7),
|
||||
[datetime]$ToDate = (Get-Date).Date,
|
||||
[string]$BaseDirectory = "C:\Trafag\SageSpain",
|
||||
[string]$RcloneExe = "C:\Tools\rclone.exe",
|
||||
[string]$RcloneRemote = "trafag-bi",
|
||||
|
||||
Binary file not shown.
@@ -1,6 +1,6 @@
|
||||
param(
|
||||
[datetime]$FromDate = "2026-06-01",
|
||||
[datetime]$ToDate = "2026-06-04",
|
||||
[datetime]$FromDate = (Get-Date).Date.AddDays(-7),
|
||||
[datetime]$ToDate = (Get-Date).Date,
|
||||
[string]$ServerInstance = "localhost",
|
||||
[string]$Database = "Sage",
|
||||
[string]$BaseDirectory = "C:\Trafag\SageSpain",
|
||||
|
||||
Reference in New Issue
Block a user