2024-08-07 20:18:55 +02:00
|
|
|
|
using System.Globalization;
|
|
|
|
|
|
using DiunaBIWebAPI.dataProcessors;
|
|
|
|
|
|
using Google.Apis.Sheets.v4;
|
|
|
|
|
|
using Google.Apis.Sheets.v4.Data;
|
2024-06-17 22:28:40 +02:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
using WebAPI.Controllers;
|
|
|
|
|
|
using WebAPI.Models;
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-18 22:02:19 +02:00
|
|
|
|
namespace WebAPI.dataProcessors;
|
|
|
|
|
|
|
|
|
|
|
|
public class T4R2Processor
|
2024-06-17 22:28:40 +02:00
|
|
|
|
{
|
2024-06-18 22:02:19 +02:00
|
|
|
|
private readonly AppDbContext _db;
|
|
|
|
|
|
private readonly LayersController _controller;
|
|
|
|
|
|
private readonly LogsController _logsController;
|
2024-08-07 20:18:55 +02:00
|
|
|
|
private readonly SpreadsheetsResource.ValuesResource _googleSheetValues;
|
2024-06-18 22:02:19 +02:00
|
|
|
|
|
|
|
|
|
|
public T4R2Processor(
|
|
|
|
|
|
AppDbContext db,
|
|
|
|
|
|
LayersController controller,
|
2024-08-07 20:18:55 +02:00
|
|
|
|
LogsController logsController,
|
|
|
|
|
|
SpreadsheetsResource.ValuesResource googleSheetValues
|
|
|
|
|
|
)
|
2024-06-17 22:28:40 +02:00
|
|
|
|
{
|
2024-06-18 22:02:19 +02:00
|
|
|
|
_db = db;
|
|
|
|
|
|
_controller = controller;
|
|
|
|
|
|
_logsController = logsController;
|
2024-08-07 20:18:55 +02:00
|
|
|
|
_googleSheetValues = googleSheetValues;
|
2024-06-18 22:02:19 +02:00
|
|
|
|
}
|
2024-06-17 22:28:40 +02:00
|
|
|
|
|
2024-06-18 22:02:19 +02:00
|
|
|
|
public void Process(Layer processWorker)
|
|
|
|
|
|
{
|
|
|
|
|
|
var year = int.Parse(processWorker.Records?.SingleOrDefault(x => x.Code == "Year")?.Desc1!);
|
|
|
|
|
|
var sources = processWorker.Records?.Where(x => x.Code == "Source").ToList();
|
2024-06-18 22:24:04 +02:00
|
|
|
|
if (sources!.Count == 0)
|
2024-06-17 22:28:40 +02:00
|
|
|
|
{
|
2024-06-18 22:02:19 +02:00
|
|
|
|
throw new Exception("Source record not found");
|
2024-06-17 22:28:40 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
2024-06-18 22:02:19 +02:00
|
|
|
|
var layerName = processWorker.Records?.SingleOrDefault(x => x.Code == "LayerName")?.Desc1;
|
|
|
|
|
|
if (layerName == null)
|
2024-06-17 22:28:40 +02:00
|
|
|
|
{
|
2024-06-18 22:02:19 +02:00
|
|
|
|
throw new Exception("LayerName record not found");
|
|
|
|
|
|
}
|
2024-06-17 22:28:40 +02:00
|
|
|
|
|
|
|
|
|
|
|
2024-06-18 22:02:19 +02:00
|
|
|
|
var processedLayer = _db.Layers
|
|
|
|
|
|
.Where(x => x.ParentId == processWorker.Id
|
|
|
|
|
|
&& !x.IsDeleted)
|
|
|
|
|
|
.OrderByDescending(x => x.CreatedAt)
|
|
|
|
|
|
.FirstOrDefault();
|
2024-06-17 22:28:40 +02:00
|
|
|
|
|
2024-06-18 22:02:19 +02:00
|
|
|
|
var isNew = false;
|
|
|
|
|
|
if (processedLayer == null)
|
|
|
|
|
|
{
|
|
|
|
|
|
isNew = true;
|
|
|
|
|
|
processedLayer = new Layer
|
2024-06-17 22:28:40 +02:00
|
|
|
|
{
|
2024-06-18 22:02:19 +02:00
|
|
|
|
Id = Guid.NewGuid(),
|
|
|
|
|
|
Type = LayerType.Processed,
|
|
|
|
|
|
ParentId = processWorker.Id,
|
|
|
|
|
|
Number = _db.Layers.Count() + 1
|
|
|
|
|
|
};
|
|
|
|
|
|
processedLayer.Name = $"L{processedLayer.Number}-{layerName}";
|
|
|
|
|
|
processedLayer.CreatedById = Guid.Parse("F392209E-123E-4651-A5A4-0B1D6CF9FF9D");
|
2024-06-17 22:28:40 +02:00
|
|
|
|
processedLayer.ModifiedById = Guid.Parse("F392209E-123E-4651-A5A4-0B1D6CF9FF9D");
|
2024-06-18 22:02:19 +02:00
|
|
|
|
processedLayer.CreatedAt = DateTime.UtcNow;
|
2024-06-17 22:28:40 +02:00
|
|
|
|
processedLayer.ModifiedAt = DateTime.UtcNow;
|
2024-06-18 22:02:19 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
processedLayer.ModifiedById = Guid.Parse("F392209E-123E-4651-A5A4-0B1D6CF9FF9D");
|
|
|
|
|
|
processedLayer.ModifiedAt = DateTime.UtcNow;
|
2024-06-17 22:28:40 +02:00
|
|
|
|
|
|
|
|
|
|
|
2024-06-18 22:02:19 +02:00
|
|
|
|
var newRecords = new List<Record>();
|
2024-06-17 22:28:40 +02:00
|
|
|
|
|
2024-06-18 22:24:04 +02:00
|
|
|
|
foreach (var source in sources)
|
2024-06-18 22:02:19 +02:00
|
|
|
|
{
|
|
|
|
|
|
var rawSourceCodes = processWorker.Records?.SingleOrDefault(x => x.Code == $"Codes-{source.Desc1}")
|
|
|
|
|
|
?.Desc1;
|
|
|
|
|
|
var sourceCodes = new List<int>();
|
|
|
|
|
|
if (rawSourceCodes != null)
|
2024-06-17 22:28:40 +02:00
|
|
|
|
{
|
2024-06-18 22:02:19 +02:00
|
|
|
|
sourceCodes = ProcessHelper.ParseCodes(rawSourceCodes);
|
|
|
|
|
|
}
|
2024-06-17 22:28:40 +02:00
|
|
|
|
|
2024-07-03 13:43:57 +02:00
|
|
|
|
List<string> lastSourceCodes = new List<string>();
|
|
|
|
|
|
|
|
|
|
|
|
for (var month = 1; month <= 12; month++)
|
2024-06-18 22:02:19 +02:00
|
|
|
|
{
|
2024-07-03 13:43:57 +02:00
|
|
|
|
if (month <= DateTime.UtcNow.Month)
|
2024-06-17 22:28:40 +02:00
|
|
|
|
{
|
2024-07-03 13:43:57 +02:00
|
|
|
|
var monthCopy = month;
|
|
|
|
|
|
var dataSource = _db.Layers.Where(x =>
|
|
|
|
|
|
x.Type == LayerType.Processed &&
|
|
|
|
|
|
!x.IsDeleted &&
|
|
|
|
|
|
x.Name != null && x.Name.Contains($"{year}/{monthCopy}-{source.Desc1}-T")
|
|
|
|
|
|
)
|
|
|
|
|
|
.Include(x => x.Records)
|
|
|
|
|
|
.FirstOrDefault();
|
|
|
|
|
|
if (dataSource != null)
|
|
|
|
|
|
{
|
|
|
|
|
|
lastSourceCodes = dataSource.Records!.Select(x => x.Code!).ToList();
|
|
|
|
|
|
var news = dataSource.Records!
|
|
|
|
|
|
.Where(x => sourceCodes.Count <= 0 || sourceCodes.Contains(int.Parse(x.Code!)))
|
|
|
|
|
|
.Select(x =>
|
|
|
|
|
|
{
|
|
|
|
|
|
var newRecord = new Record
|
|
|
|
|
|
{
|
|
|
|
|
|
Id = Guid.NewGuid(),
|
|
|
|
|
|
Code = x.Code + month.ToString("D2"),
|
|
|
|
|
|
CreatedAt = DateTime.UtcNow,
|
|
|
|
|
|
ModifiedAt = DateTime.UtcNow,
|
|
|
|
|
|
Value1 = source.Desc1 != "FK2" ? x.Value32 : x.Value1,
|
|
|
|
|
|
Desc1 = x.Desc1
|
|
|
|
|
|
};
|
|
|
|
|
|
return newRecord;
|
|
|
|
|
|
}
|
|
|
|
|
|
).ToList();
|
|
|
|
|
|
newRecords.AddRange(news);
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
_logsController.AddEntry(new LogEntry
|
|
|
|
|
|
{
|
|
|
|
|
|
Title = $"{processWorker.Name}, {processWorker.Id}",
|
|
|
|
|
|
Type = LogEntryType.Warning,
|
|
|
|
|
|
LogType = LogType.Process,
|
|
|
|
|
|
Message = $"Data source {year}/{month}-{source.Desc1}-T3 not found",
|
|
|
|
|
|
CreatedAt = DateTime.UtcNow
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
//0 values for future months
|
|
|
|
|
|
if (source.Desc1 == "FK2" || lastSourceCodes.Count <= 0) continue;
|
|
|
|
|
|
var news = lastSourceCodes
|
|
|
|
|
|
.Where(x => sourceCodes.Contains(int.Parse(x)))
|
2024-06-18 22:02:19 +02:00
|
|
|
|
.Select(x =>
|
2024-06-17 22:28:40 +02:00
|
|
|
|
{
|
2024-06-18 22:02:19 +02:00
|
|
|
|
var newRecord = new Record
|
2024-06-17 22:28:40 +02:00
|
|
|
|
{
|
2024-06-18 22:02:19 +02:00
|
|
|
|
Id = Guid.NewGuid(),
|
2024-07-03 13:43:57 +02:00
|
|
|
|
Code = x + month.ToString("D2"),
|
2024-06-18 22:02:19 +02:00
|
|
|
|
CreatedAt = DateTime.UtcNow,
|
|
|
|
|
|
ModifiedAt = DateTime.UtcNow,
|
2024-07-03 13:43:57 +02:00
|
|
|
|
Value1 = 0,
|
2024-06-18 22:02:19 +02:00
|
|
|
|
};
|
2024-07-03 13:43:57 +02:00
|
|
|
|
return newRecord;
|
2024-06-18 22:02:19 +02:00
|
|
|
|
}
|
|
|
|
|
|
).ToList();
|
|
|
|
|
|
newRecords.AddRange(news);
|
|
|
|
|
|
}
|
2024-06-17 22:28:40 +02:00
|
|
|
|
}
|
2024-06-18 22:02:19 +02:00
|
|
|
|
|
2024-07-03 13:43:57 +02:00
|
|
|
|
// year summary
|
2024-06-18 22:02:19 +02:00
|
|
|
|
var dataSourceSum = _db.Layers.Where(x =>
|
|
|
|
|
|
x.Type == LayerType.Processed &&
|
|
|
|
|
|
!x.IsDeleted &&
|
|
|
|
|
|
x.Name != null && x.Name.Contains($"{year}/13-{source.Desc1}-T")
|
|
|
|
|
|
)
|
|
|
|
|
|
.Include(x => x.Records)
|
|
|
|
|
|
.FirstOrDefault();
|
|
|
|
|
|
if (dataSourceSum != null)
|
2024-06-17 22:28:40 +02:00
|
|
|
|
{
|
2024-06-18 22:02:19 +02:00
|
|
|
|
var news = dataSourceSum.Records!
|
|
|
|
|
|
.Where(x => sourceCodes.Count <= 0 || sourceCodes.Contains(int.Parse(x.Code!)))
|
|
|
|
|
|
.Select(x =>
|
|
|
|
|
|
{
|
|
|
|
|
|
var newRecord = new Record
|
|
|
|
|
|
{
|
|
|
|
|
|
Id = Guid.NewGuid(),
|
|
|
|
|
|
Code = x.Code + "13",
|
|
|
|
|
|
CreatedAt = DateTime.UtcNow,
|
|
|
|
|
|
ModifiedAt = DateTime.UtcNow,
|
|
|
|
|
|
Value1 = x.Value32
|
|
|
|
|
|
};
|
|
|
|
|
|
return newRecord;
|
|
|
|
|
|
}
|
|
|
|
|
|
).ToList();
|
|
|
|
|
|
newRecords.AddRange(news);
|
2024-06-17 22:28:40 +02:00
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
2024-06-18 22:02:19 +02:00
|
|
|
|
_logsController.AddEntry(new LogEntry
|
|
|
|
|
|
{
|
|
|
|
|
|
Title = $"{processWorker.Name}, {processWorker.Id}",
|
|
|
|
|
|
Type = LogEntryType.Warning,
|
|
|
|
|
|
LogType = LogType.Process,
|
|
|
|
|
|
Message = $"Data source {year}/13-{source.Desc1}-T3 not found",
|
|
|
|
|
|
CreatedAt = DateTime.UtcNow
|
|
|
|
|
|
});
|
2024-06-17 22:28:40 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-06-18 22:02:19 +02:00
|
|
|
|
|
|
|
|
|
|
if (isNew)
|
|
|
|
|
|
{
|
|
|
|
|
|
_db.Layers.Add(processedLayer);
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
_db.Layers.Update(processedLayer);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
_controller.SaveRecords(processedLayer.Id, newRecords, Guid.Parse("F392209E-123E-4651-A5A4-0B1D6CF9FF9D"));
|
|
|
|
|
|
_db.SaveChanges();
|
2024-08-07 20:18:55 +02:00
|
|
|
|
|
|
|
|
|
|
UpdateReport();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void UpdateReport()
|
|
|
|
|
|
{
|
|
|
|
|
|
const string sheetId = "1FsUmk_YRIeeGzFCX9tuUJCaLyRtjutX2ZGAEU1DMfJQ";
|
|
|
|
|
|
const string reportSheetName = "Raport_R2_Sprzedaz";
|
|
|
|
|
|
const string invoicesSheetName = "Raport_R2_Faktury";
|
|
|
|
|
|
var request = _googleSheetValues.Get(sheetId, "C4:Z4");
|
|
|
|
|
|
var response = request.Execute();
|
|
|
|
|
|
|
|
|
|
|
|
var r2 = _db.Layers
|
|
|
|
|
|
.Where(x => x.Number == 1501)
|
|
|
|
|
|
.Include(x => x.Records)
|
|
|
|
|
|
.FirstOrDefault();
|
|
|
|
|
|
|
|
|
|
|
|
const int startRow = 6;
|
|
|
|
|
|
|
|
|
|
|
|
var codesRow = response.Values[0];
|
|
|
|
|
|
for (var i = 1; i <= 12; i++)
|
|
|
|
|
|
{
|
|
|
|
|
|
var values = new List<object>();
|
|
|
|
|
|
var month = i < 10 ? $"0{i}" : i.ToString();
|
|
|
|
|
|
var row = (startRow + i).ToString();
|
|
|
|
|
|
foreach (string code in codesRow)
|
|
|
|
|
|
{
|
|
|
|
|
|
var record = r2!.Records?.SingleOrDefault(x => x.Code == $"{code}{month}");
|
|
|
|
|
|
if (record != null)
|
|
|
|
|
|
{
|
|
|
|
|
|
values.Add(record.Value1!.Value);
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
values.Add("0");
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
var valueRange = new ValueRange
|
|
|
|
|
|
{
|
|
|
|
|
|
Values = new List<IList<object>> { values }
|
|
|
|
|
|
};
|
|
|
|
|
|
var update = _googleSheetValues.Update(valueRange, sheetId, $"{reportSheetName}!C{row}:XZ{row}");
|
|
|
|
|
|
update.ValueInputOption = SpreadsheetsResource.ValuesResource.UpdateRequest.ValueInputOptionEnum.USERENTERED;
|
|
|
|
|
|
update.Execute();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// sum
|
|
|
|
|
|
var valuesSum = new List<object>();
|
|
|
|
|
|
var emptyRow = new List<object>();
|
|
|
|
|
|
var rowEmpty = (startRow + 13).ToString();
|
|
|
|
|
|
var rowSum = (startRow + 14).ToString();
|
|
|
|
|
|
foreach (string code in codesRow)
|
|
|
|
|
|
{
|
|
|
|
|
|
var record = r2!.Records?.SingleOrDefault(x => x.Code == $"{code}13");
|
|
|
|
|
|
emptyRow.Add("");
|
|
|
|
|
|
if (record != null)
|
|
|
|
|
|
{
|
|
|
|
|
|
valuesSum.Add(record.Value1!.Value);
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
valuesSum.Add("0");
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
// insert empty row before sum
|
|
|
|
|
|
var valueRangeEmpty = new ValueRange
|
|
|
|
|
|
{
|
|
|
|
|
|
Values = new List<IList<object>> { emptyRow }
|
|
|
|
|
|
};
|
|
|
|
|
|
var updateEmpty = _googleSheetValues.Update(valueRangeEmpty, sheetId, $"{reportSheetName}!C{rowEmpty}:XZ{rowEmpty}");
|
|
|
|
|
|
updateEmpty.ValueInputOption = SpreadsheetsResource.ValuesResource.UpdateRequest.ValueInputOptionEnum.USERENTERED;
|
|
|
|
|
|
updateEmpty.Execute();
|
|
|
|
|
|
|
|
|
|
|
|
var valueRangeSum = new ValueRange
|
|
|
|
|
|
{
|
|
|
|
|
|
Values = new List<IList<object>> { valuesSum }
|
|
|
|
|
|
};
|
|
|
|
|
|
var updateSum = _googleSheetValues.Update(valueRangeSum, sheetId, $"{reportSheetName}!C{rowSum}:XZ{rowSum}");
|
|
|
|
|
|
updateSum.ValueInputOption = SpreadsheetsResource.ValuesResource.UpdateRequest.ValueInputOptionEnum.USERENTERED;
|
|
|
|
|
|
updateSum.Execute();
|
|
|
|
|
|
|
|
|
|
|
|
// update time
|
|
|
|
|
|
var timeUtc = new List<object>
|
|
|
|
|
|
{
|
2024-08-13 08:04:19 +02:00
|
|
|
|
r2!.ModifiedAt.ToString("dd.MM.yyyy HH:mm:ss", CultureInfo.GetCultureInfo("pl-PL"))
|
2024-08-07 20:18:55 +02:00
|
|
|
|
};
|
|
|
|
|
|
var valueRangeUtcTime = new ValueRange
|
|
|
|
|
|
{
|
|
|
|
|
|
Values = new List<IList<object>> { timeUtc }
|
|
|
|
|
|
};
|
|
|
|
|
|
var updateTimeUtc = _googleSheetValues.Update(valueRangeUtcTime, sheetId, $"{reportSheetName}!G1");
|
|
|
|
|
|
updateTimeUtc.ValueInputOption = SpreadsheetsResource.ValuesResource.UpdateRequest.ValueInputOptionEnum.USERENTERED;
|
|
|
|
|
|
updateTimeUtc.Execute();
|
|
|
|
|
|
|
|
|
|
|
|
var warsawTimeZone = TimeZoneInfo.FindSystemTimeZoneById("Central European Standard Time");
|
|
|
|
|
|
var warsawTime = TimeZoneInfo.ConvertTimeFromUtc(r2.ModifiedAt.ToUniversalTime(), warsawTimeZone);
|
|
|
|
|
|
var timeWarsaw = new List<object>
|
|
|
|
|
|
{
|
2024-08-13 08:04:19 +02:00
|
|
|
|
warsawTime.ToString("dd.MM.yyyy HH:mm:ss", CultureInfo.GetCultureInfo("pl-PL"))
|
2024-08-07 20:18:55 +02:00
|
|
|
|
};
|
|
|
|
|
|
var valueRangeWarsawTime = new ValueRange
|
|
|
|
|
|
{
|
|
|
|
|
|
Values = new List<IList<object>> { timeWarsaw }
|
|
|
|
|
|
};
|
|
|
|
|
|
var updateTimeWarsaw = _googleSheetValues.Update(valueRangeWarsawTime, sheetId, $"{reportSheetName}!G2");
|
|
|
|
|
|
updateTimeWarsaw.ValueInputOption = SpreadsheetsResource.ValuesResource.UpdateRequest.ValueInputOptionEnum.USERENTERED;
|
|
|
|
|
|
updateTimeWarsaw.Execute();
|
|
|
|
|
|
|
|
|
|
|
|
//invoices
|
|
|
|
|
|
|
|
|
|
|
|
var invoices = r2.Records!.Where(x => x.Code!.Length == 12)
|
|
|
|
|
|
.OrderByDescending(x => x.Code);
|
|
|
|
|
|
|
|
|
|
|
|
var invoicesValues = new List<IList<object>>();
|
2024-08-09 13:59:57 +02:00
|
|
|
|
var cleanUpValues = new List<IList<object>>();
|
2024-08-07 20:18:55 +02:00
|
|
|
|
foreach (var invoice in invoices)
|
|
|
|
|
|
{
|
|
|
|
|
|
var invoiceDate =
|
|
|
|
|
|
DateTime.ParseExact(invoice.Code!.Substring(0, 8), "yyyyMMdd", CultureInfo.InvariantCulture)
|
|
|
|
|
|
.ToString("d");
|
|
|
|
|
|
var invoiceRow = new List<object>
|
|
|
|
|
|
{
|
|
|
|
|
|
invoiceDate,
|
|
|
|
|
|
"",
|
|
|
|
|
|
invoice.Desc1!,
|
|
|
|
|
|
invoice.Value1!
|
|
|
|
|
|
};
|
|
|
|
|
|
invoicesValues.Add(invoiceRow);
|
2024-08-09 13:59:57 +02:00
|
|
|
|
|
|
|
|
|
|
var cleanupRow = new List<object>
|
|
|
|
|
|
{
|
|
|
|
|
|
"", "", "", ""
|
|
|
|
|
|
};
|
|
|
|
|
|
cleanUpValues.Add(cleanupRow);
|
2024-08-07 20:18:55 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
2024-08-09 13:59:57 +02:00
|
|
|
|
|
|
|
|
|
|
var cleanupValueRange = new ValueRange { Values = cleanUpValues };
|
|
|
|
|
|
var cleanupInvoices = _googleSheetValues.Update(cleanupValueRange, sheetId, $"{invoicesSheetName}!A6:E");
|
|
|
|
|
|
cleanupInvoices.ValueInputOption =
|
|
|
|
|
|
SpreadsheetsResource.ValuesResource.UpdateRequest.ValueInputOptionEnum.USERENTERED;
|
|
|
|
|
|
cleanupInvoices.Execute();
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-08-07 20:18:55 +02:00
|
|
|
|
var invoicesValueRange = new ValueRange { Values = invoicesValues };
|
|
|
|
|
|
var updateInvoices = _googleSheetValues.Update(invoicesValueRange, sheetId, $"{invoicesSheetName}!A6:E");
|
|
|
|
|
|
updateInvoices.ValueInputOption =
|
|
|
|
|
|
SpreadsheetsResource.ValuesResource.UpdateRequest.ValueInputOptionEnum.USERENTERED;
|
|
|
|
|
|
updateInvoices.Execute();
|
2024-08-09 13:59:57 +02:00
|
|
|
|
|
2024-06-17 22:28:40 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|