This commit is contained in:
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
@@ -55,7 +55,7 @@
|
|||||||
"AYANOVA_FOLDER_USER_FILES": "c:\\temp\\RavenTestData\\userfiles",
|
"AYANOVA_FOLDER_USER_FILES": "c:\\temp\\RavenTestData\\userfiles",
|
||||||
"AYANOVA_FOLDER_BACKUP_FILES": "c:\\temp\\RavenTestData\\backupfiles",
|
"AYANOVA_FOLDER_BACKUP_FILES": "c:\\temp\\RavenTestData\\backupfiles",
|
||||||
"AYANOVA_FOLDER_TEMPORARY_SERVER_FILES": "c:\\temp\\RavenTestData\\tempfiles",
|
"AYANOVA_FOLDER_TEMPORARY_SERVER_FILES": "c:\\temp\\RavenTestData\\tempfiles",
|
||||||
"AYANOVA_SERVER_TEST_MODE": "false",
|
"AYANOVA_SERVER_TEST_MODE": "true",
|
||||||
"AYANOVA_SERVER_TEST_MODE_SEEDLEVEL": "small",
|
"AYANOVA_SERVER_TEST_MODE_SEEDLEVEL": "small",
|
||||||
"AYANOVA_SERVER_TEST_MODE_TZ_OFFSET": "-8",
|
"AYANOVA_SERVER_TEST_MODE_TZ_OFFSET": "-8",
|
||||||
"AYANOVA_BACKUP_PG_DUMP_PATH": "C:\\data\\code\\postgres_14\\bin\\"
|
"AYANOVA_BACKUP_PG_DUMP_PATH": "C:\\data\\code\\postgres_14\\bin\\"
|
||||||
|
|||||||
@@ -3545,26 +3545,26 @@ namespace AyaNova.Util
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
//LOANERS
|
// //LOANERS
|
||||||
var woItemLoan = new QuoteItemLoan()
|
// var woItemLoan = new QuoteItemLoan()
|
||||||
{
|
// {
|
||||||
OutDate = woDate.AddHours(1),
|
// OutDate = woDate.AddHours(1),
|
||||||
DueDate = woDate.AddHours(4),
|
// DueDate = woDate.AddHours(4),
|
||||||
Quantity = 4,
|
// Quantity = 4,
|
||||||
Rate = LoanUnitRateUnit.Hours,
|
// Rate = LoanUnitRateUnit.Hours,
|
||||||
LoanUnitId = Fake.Random.Long(1, TotalSeededLoanUnits)
|
// LoanUnitId = Fake.Random.Long(1, TotalSeededLoanUnits)
|
||||||
};
|
// };
|
||||||
woItem.Loans.Add(woItemLoan);
|
// woItem.Loans.Add(woItemLoan);
|
||||||
|
|
||||||
woItemLoan = new QuoteItemLoan()
|
// woItemLoan = new QuoteItemLoan()
|
||||||
{
|
// {
|
||||||
OutDate = woDate.AddHours(2),
|
// OutDate = woDate.AddHours(2),
|
||||||
DueDate = woDate.AddHours(3),
|
// DueDate = woDate.AddHours(3),
|
||||||
Quantity = 1,
|
// Quantity = 1,
|
||||||
Rate = LoanUnitRateUnit.Hours,
|
// Rate = LoanUnitRateUnit.Hours,
|
||||||
LoanUnitId = Fake.Random.Long(1, TotalSeededLoanUnits)
|
// LoanUnitId = Fake.Random.Long(1, TotalSeededLoanUnits)
|
||||||
};
|
// };
|
||||||
woItem.Loans.Add(woItemLoan);
|
// woItem.Loans.Add(woItemLoan);
|
||||||
|
|
||||||
|
|
||||||
//LABOR
|
//LABOR
|
||||||
@@ -3667,77 +3667,77 @@ namespace AyaNova.Util
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
//EXPENSES
|
// //EXPENSES
|
||||||
var cost = Fake.Random.Decimal(1, 10);
|
// var cost = Fake.Random.Decimal(1, 10);
|
||||||
var woItemExpense = new QuoteItemExpense()
|
// var woItemExpense = new QuoteItemExpense()
|
||||||
{
|
// {
|
||||||
UserId = RandomServiceTechUserId(),
|
// UserId = RandomServiceTechUserId(),
|
||||||
//TotalCost = cost,
|
// //TotalCost = cost,
|
||||||
ChargeAmount = cost * 1.2m,
|
// ChargeAmount = cost * 1.2m,
|
||||||
ChargeToCustomer = true,
|
// ChargeToCustomer = true,
|
||||||
ReimburseUser = true,
|
// ReimburseUser = true,
|
||||||
ChargeTaxCodeId = TCGoods,
|
// ChargeTaxCodeId = TCGoods,
|
||||||
Name = Fake.Commerce.ProductName()
|
// Name = Fake.Commerce.ProductName()
|
||||||
|
|
||||||
};
|
// };
|
||||||
woItem.Expenses.Add(woItemExpense);
|
// woItem.Expenses.Add(woItemExpense);
|
||||||
|
|
||||||
woItemExpense = new QuoteItemExpense()
|
// woItemExpense = new QuoteItemExpense()
|
||||||
{
|
// {
|
||||||
UserId = RandomServiceTechUserId(),
|
// UserId = RandomServiceTechUserId(),
|
||||||
// TotalCost = cost * 2m,
|
// // TotalCost = cost * 2m,
|
||||||
ChargeAmount = cost * 2.2m,
|
// ChargeAmount = cost * 2.2m,
|
||||||
ChargeToCustomer = true,
|
// ChargeToCustomer = true,
|
||||||
ReimburseUser = true,
|
// ReimburseUser = true,
|
||||||
ChargeTaxCodeId = TCGoods,
|
// ChargeTaxCodeId = TCGoods,
|
||||||
Name = Fake.Commerce.ProductName()
|
// Name = Fake.Commerce.ProductName()
|
||||||
|
|
||||||
};
|
// };
|
||||||
woItem.Expenses.Add(woItemExpense);
|
// woItem.Expenses.Add(woItemExpense);
|
||||||
|
|
||||||
|
|
||||||
//OUTSIDE SERVICES
|
// //OUTSIDE SERVICES
|
||||||
var ShippingCost = Fake.Random.Decimal(5, 20);
|
// var ShippingCost = Fake.Random.Decimal(5, 20);
|
||||||
var RepairCost = Fake.Random.Decimal(50, 1000);
|
// var RepairCost = Fake.Random.Decimal(50, 1000);
|
||||||
var woItemOutsideService = new QuoteItemOutsideService()
|
// var woItemOutsideService = new QuoteItemOutsideService()
|
||||||
{
|
// {
|
||||||
UnitId = GetNextUnitForCustomer(o.CustomerId),
|
// UnitId = GetNextUnitForCustomer(o.CustomerId),
|
||||||
Notes = Fake.Lorem.Sentence(null, 3),
|
// Notes = Fake.Lorem.Sentence(null, 3),
|
||||||
VendorSentToId = Fake.Random.Long(1, TotalSeededVendors),
|
// VendorSentToId = Fake.Random.Long(1, TotalSeededVendors),
|
||||||
VendorSentViaId = Fake.Random.Long(1, TotalSeededVendors),
|
// VendorSentViaId = Fake.Random.Long(1, TotalSeededVendors),
|
||||||
RMANumber = "RMA" + Fake.Finance.Account(6),
|
// RMANumber = "RMA" + Fake.Finance.Account(6),
|
||||||
TrackingNumber = "TR" + Fake.Finance.Account(8),
|
// TrackingNumber = "TR" + Fake.Finance.Account(8),
|
||||||
RepairCost = RepairCost,
|
// RepairCost = RepairCost,
|
||||||
RepairPrice = RepairCost * 1.5m,
|
// RepairPrice = RepairCost * 1.5m,
|
||||||
ShippingCost = ShippingCost,
|
// ShippingCost = ShippingCost,
|
||||||
ShippingPrice = ShippingCost * 1.5m,
|
// ShippingPrice = ShippingCost * 1.5m,
|
||||||
SentDate = woDate,
|
// SentDate = woDate,
|
||||||
ETADate = woDate.AddDays(7),
|
// ETADate = woDate.AddDays(7),
|
||||||
ReturnDate = woDate.AddDays(8),
|
// ReturnDate = woDate.AddDays(8),
|
||||||
TaxCodeId = 1
|
// TaxCodeId = 1
|
||||||
};
|
// };
|
||||||
woItem.OutsideServices.Add(woItemOutsideService);
|
// woItem.OutsideServices.Add(woItemOutsideService);
|
||||||
|
|
||||||
ShippingCost = Fake.Random.Decimal(5, 20);
|
// ShippingCost = Fake.Random.Decimal(5, 20);
|
||||||
RepairCost = Fake.Random.Decimal(50, 1000);
|
// RepairCost = Fake.Random.Decimal(50, 1000);
|
||||||
woItemOutsideService = new QuoteItemOutsideService()
|
// woItemOutsideService = new QuoteItemOutsideService()
|
||||||
{
|
// {
|
||||||
UnitId = GetNextUnitForCustomer(o.CustomerId),
|
// UnitId = GetNextUnitForCustomer(o.CustomerId),
|
||||||
Notes = Fake.Lorem.Sentence(null, 3),
|
// Notes = Fake.Lorem.Sentence(null, 3),
|
||||||
VendorSentToId = Fake.Random.Long(1, TotalSeededVendors),
|
// VendorSentToId = Fake.Random.Long(1, TotalSeededVendors),
|
||||||
VendorSentViaId = Fake.Random.Long(1, TotalSeededVendors),
|
// VendorSentViaId = Fake.Random.Long(1, TotalSeededVendors),
|
||||||
RMANumber = "RMA" + Fake.Finance.Account(6),
|
// RMANumber = "RMA" + Fake.Finance.Account(6),
|
||||||
TrackingNumber = "TR" + Fake.Finance.Account(8),
|
// TrackingNumber = "TR" + Fake.Finance.Account(8),
|
||||||
RepairCost = RepairCost,
|
// RepairCost = RepairCost,
|
||||||
RepairPrice = RepairCost * 1.5m,
|
// RepairPrice = RepairCost * 1.5m,
|
||||||
ShippingCost = ShippingCost,
|
// ShippingCost = ShippingCost,
|
||||||
ShippingPrice = ShippingCost * 1.5m,
|
// ShippingPrice = ShippingCost * 1.5m,
|
||||||
SentDate = woDate,
|
// SentDate = woDate,
|
||||||
ETADate = woDate.AddDays(7),
|
// ETADate = woDate.AddDays(7),
|
||||||
ReturnDate = woDate.AddDays(8),
|
// ReturnDate = woDate.AddDays(8),
|
||||||
TaxCodeId = 1
|
// TaxCodeId = 1
|
||||||
};
|
// };
|
||||||
woItem.OutsideServices.Add(woItemOutsideService);
|
// woItem.OutsideServices.Add(woItemOutsideService);
|
||||||
|
|
||||||
o.Items.Add(woItem);
|
o.Items.Add(woItem);
|
||||||
}
|
}
|
||||||
@@ -3974,26 +3974,26 @@ namespace AyaNova.Util
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
//LOANERS
|
// //LOANERS
|
||||||
var woItemLoan = new PMItemLoan()
|
// var woItemLoan = new PMItemLoan()
|
||||||
{
|
// {
|
||||||
OutDate = woDate.AddHours(1),
|
// OutDate = woDate.AddHours(1),
|
||||||
DueDate = woDate.AddHours(4),
|
// DueDate = woDate.AddHours(4),
|
||||||
Quantity = 4,
|
// Quantity = 4,
|
||||||
Rate = LoanUnitRateUnit.Hours,
|
// Rate = LoanUnitRateUnit.Hours,
|
||||||
LoanUnitId = Fake.Random.Long(1, TotalSeededLoanUnits)
|
// LoanUnitId = Fake.Random.Long(1, TotalSeededLoanUnits)
|
||||||
};
|
// };
|
||||||
woItem.Loans.Add(woItemLoan);
|
// woItem.Loans.Add(woItemLoan);
|
||||||
|
|
||||||
woItemLoan = new PMItemLoan()
|
// woItemLoan = new PMItemLoan()
|
||||||
{
|
// {
|
||||||
OutDate = woDate.AddHours(2),
|
// OutDate = woDate.AddHours(2),
|
||||||
DueDate = woDate.AddHours(3),
|
// DueDate = woDate.AddHours(3),
|
||||||
Quantity = 1,
|
// Quantity = 1,
|
||||||
Rate = LoanUnitRateUnit.Hours,
|
// Rate = LoanUnitRateUnit.Hours,
|
||||||
LoanUnitId = Fake.Random.Long(1, TotalSeededLoanUnits)
|
// LoanUnitId = Fake.Random.Long(1, TotalSeededLoanUnits)
|
||||||
};
|
// };
|
||||||
woItem.Loans.Add(woItemLoan);
|
// woItem.Loans.Add(woItemLoan);
|
||||||
|
|
||||||
|
|
||||||
//LABOR
|
//LABOR
|
||||||
@@ -4096,77 +4096,77 @@ namespace AyaNova.Util
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
//EXPENSES
|
// //EXPENSES
|
||||||
var cost = Fake.Random.Decimal(1, 10);
|
// var cost = Fake.Random.Decimal(1, 10);
|
||||||
var woItemExpense = new PMItemExpense()
|
// var woItemExpense = new PMItemExpense()
|
||||||
{
|
// {
|
||||||
UserId = RandomServiceTechUserId(),
|
// UserId = RandomServiceTechUserId(),
|
||||||
//TotalCost = cost,
|
// //TotalCost = cost,
|
||||||
ChargeAmount = cost * 1.2m,
|
// ChargeAmount = cost * 1.2m,
|
||||||
ChargeToCustomer = true,
|
// ChargeToCustomer = true,
|
||||||
ReimburseUser = true,
|
// ReimburseUser = true,
|
||||||
ChargeTaxCodeId = TCGoods,
|
// ChargeTaxCodeId = TCGoods,
|
||||||
Name = Fake.Commerce.ProductName()
|
// Name = Fake.Commerce.ProductName()
|
||||||
|
|
||||||
};
|
// };
|
||||||
woItem.Expenses.Add(woItemExpense);
|
// woItem.Expenses.Add(woItemExpense);
|
||||||
|
|
||||||
woItemExpense = new PMItemExpense()
|
// woItemExpense = new PMItemExpense()
|
||||||
{
|
// {
|
||||||
UserId = RandomServiceTechUserId(),
|
// UserId = RandomServiceTechUserId(),
|
||||||
// TotalCost = cost * 2m,
|
// // TotalCost = cost * 2m,
|
||||||
ChargeAmount = cost * 2.2m,
|
// ChargeAmount = cost * 2.2m,
|
||||||
ChargeToCustomer = true,
|
// ChargeToCustomer = true,
|
||||||
ReimburseUser = true,
|
// ReimburseUser = true,
|
||||||
ChargeTaxCodeId = TCGoods,
|
// ChargeTaxCodeId = TCGoods,
|
||||||
Name = Fake.Commerce.ProductName()
|
// Name = Fake.Commerce.ProductName()
|
||||||
|
|
||||||
};
|
// };
|
||||||
woItem.Expenses.Add(woItemExpense);
|
// woItem.Expenses.Add(woItemExpense);
|
||||||
|
|
||||||
|
|
||||||
//OUTSIDE SERVICES
|
// //OUTSIDE SERVICES
|
||||||
var ShippingCost = Fake.Random.Decimal(5, 20);
|
// var ShippingCost = Fake.Random.Decimal(5, 20);
|
||||||
var RepairCost = Fake.Random.Decimal(50, 1000);
|
// var RepairCost = Fake.Random.Decimal(50, 1000);
|
||||||
var woItemOutsideService = new PMItemOutsideService()
|
// var woItemOutsideService = new PMItemOutsideService()
|
||||||
{
|
// {
|
||||||
UnitId = GetNextUnitForCustomer(o.CustomerId),
|
// UnitId = GetNextUnitForCustomer(o.CustomerId),
|
||||||
Notes = Fake.Lorem.Sentence(null, 3),
|
// Notes = Fake.Lorem.Sentence(null, 3),
|
||||||
VendorSentToId = Fake.Random.Long(1, TotalSeededVendors),
|
// VendorSentToId = Fake.Random.Long(1, TotalSeededVendors),
|
||||||
VendorSentViaId = Fake.Random.Long(1, TotalSeededVendors),
|
// VendorSentViaId = Fake.Random.Long(1, TotalSeededVendors),
|
||||||
RMANumber = "RMA" + Fake.Finance.Account(6),
|
// RMANumber = "RMA" + Fake.Finance.Account(6),
|
||||||
TrackingNumber = "TR" + Fake.Finance.Account(8),
|
// TrackingNumber = "TR" + Fake.Finance.Account(8),
|
||||||
RepairCost = RepairCost,
|
// RepairCost = RepairCost,
|
||||||
RepairPrice = RepairCost * 1.5m,
|
// RepairPrice = RepairCost * 1.5m,
|
||||||
ShippingCost = ShippingCost,
|
// ShippingCost = ShippingCost,
|
||||||
ShippingPrice = ShippingCost * 1.5m,
|
// ShippingPrice = ShippingCost * 1.5m,
|
||||||
SentDate = woDate,
|
// SentDate = woDate,
|
||||||
ETADate = woDate.AddDays(7),
|
// ETADate = woDate.AddDays(7),
|
||||||
ReturnDate = woDate.AddDays(8),
|
// ReturnDate = woDate.AddDays(8),
|
||||||
TaxCodeId = 1
|
// TaxCodeId = 1
|
||||||
};
|
// };
|
||||||
woItem.OutsideServices.Add(woItemOutsideService);
|
// woItem.OutsideServices.Add(woItemOutsideService);
|
||||||
|
|
||||||
ShippingCost = Fake.Random.Decimal(5, 20);
|
// ShippingCost = Fake.Random.Decimal(5, 20);
|
||||||
RepairCost = Fake.Random.Decimal(50, 1000);
|
// RepairCost = Fake.Random.Decimal(50, 1000);
|
||||||
woItemOutsideService = new PMItemOutsideService()
|
// woItemOutsideService = new PMItemOutsideService()
|
||||||
{
|
// {
|
||||||
UnitId = GetNextUnitForCustomer(o.CustomerId),
|
// UnitId = GetNextUnitForCustomer(o.CustomerId),
|
||||||
Notes = Fake.Lorem.Sentence(null, 3),
|
// Notes = Fake.Lorem.Sentence(null, 3),
|
||||||
VendorSentToId = Fake.Random.Long(1, TotalSeededVendors),
|
// VendorSentToId = Fake.Random.Long(1, TotalSeededVendors),
|
||||||
VendorSentViaId = Fake.Random.Long(1, TotalSeededVendors),
|
// VendorSentViaId = Fake.Random.Long(1, TotalSeededVendors),
|
||||||
RMANumber = "RMA" + Fake.Finance.Account(6),
|
// RMANumber = "RMA" + Fake.Finance.Account(6),
|
||||||
TrackingNumber = "TR" + Fake.Finance.Account(8),
|
// TrackingNumber = "TR" + Fake.Finance.Account(8),
|
||||||
RepairCost = RepairCost,
|
// RepairCost = RepairCost,
|
||||||
RepairPrice = RepairCost * 1.5m,
|
// RepairPrice = RepairCost * 1.5m,
|
||||||
ShippingCost = ShippingCost,
|
// ShippingCost = ShippingCost,
|
||||||
ShippingPrice = ShippingCost * 1.5m,
|
// ShippingPrice = ShippingCost * 1.5m,
|
||||||
SentDate = woDate,
|
// SentDate = woDate,
|
||||||
ETADate = woDate.AddDays(7),
|
// ETADate = woDate.AddDays(7),
|
||||||
ReturnDate = woDate.AddDays(8),
|
// ReturnDate = woDate.AddDays(8),
|
||||||
TaxCodeId = 1
|
// TaxCodeId = 1
|
||||||
};
|
// };
|
||||||
woItem.OutsideServices.Add(woItemOutsideService);
|
// woItem.OutsideServices.Add(woItemOutsideService);
|
||||||
|
|
||||||
o.Items.Add(woItem);
|
o.Items.Add(woItem);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user