This commit is contained in:
@@ -304,6 +304,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
//BIZ objects
|
//BIZ objects
|
||||||
await ExportLocales(progress);
|
await ExportLocales(progress);
|
||||||
await ExportStaffUsers(progress);
|
await ExportStaffUsers(progress);
|
||||||
|
await ExportRates(progress);
|
||||||
await ExportContracts(progress);
|
await ExportContracts(progress);
|
||||||
await ExportHeadOffices(progress);
|
await ExportHeadOffices(progress);
|
||||||
await ExportClients(progress);
|
await ExportClients(progress);
|
||||||
@@ -328,7 +329,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
//Must be after all root objects due to followups
|
//Must be after all root objects due to followups
|
||||||
await ExportScheduleMarkers(progress);
|
await ExportScheduleMarkers(progress);
|
||||||
|
|
||||||
await ExportRates(progress);
|
|
||||||
|
|
||||||
|
|
||||||
//NOTE: when get to PRIORITY, or WORKORDER STATUS be sure to add color code as per already done in USER export
|
//NOTE: when get to PRIORITY, or WORKORDER STATUS be sure to add color code as per already done in USER export
|
||||||
@@ -1839,6 +1840,9 @@ namespace AyaNova.PlugIn.V8
|
|||||||
Rates pl = Rates.GetItems(false);
|
Rates pl = Rates.GetItems(false);
|
||||||
progress.Append("Exporting " + pl.Count.ToString() + " " + ObjectTypeName + "s");
|
progress.Append("Exporting " + pl.Count.ToString() + " " + ObjectTypeName + "s");
|
||||||
|
|
||||||
|
//get the rate unit charge descriptions for export
|
||||||
|
RateUnitChargeDescriptions rud = RateUnitChargeDescriptions.GetItems();
|
||||||
|
|
||||||
foreach (Rate i in pl)
|
foreach (Rate i in pl)
|
||||||
{
|
{
|
||||||
if (!progress.KeepGoing) return;
|
if (!progress.KeepGoing) return;
|
||||||
@@ -1852,6 +1856,12 @@ namespace AyaNova.PlugIn.V8
|
|||||||
d.active = i.Active;
|
d.active = i.Active;
|
||||||
d.notes = i.Description;
|
d.notes = i.Description;
|
||||||
d.accountNumber = i.AccountNumber;
|
d.accountNumber = i.AccountNumber;
|
||||||
|
RateUnitChargeDescription rd = rud[i.RateUnitChargeDescriptionID];
|
||||||
|
if (rd != null)
|
||||||
|
d.unit = rd.Name;
|
||||||
|
d.cost = i.Cost;
|
||||||
|
d.charge = i.Charge;
|
||||||
|
|
||||||
Tagit(i.RegionID, tags);
|
Tagit(i.RegionID, tags);
|
||||||
Tagit(i.ClientGroupID, tags);
|
Tagit(i.ClientGroupID, tags);
|
||||||
SetTags(d, tags);
|
SetTags(d, tags);
|
||||||
|
|||||||
Reference in New Issue
Block a user