Merged in feature/2020-06-04 (pull request #80)
Feature/2020 06 04 - Batch 1 of updates
This commit is contained in:
@@ -11040,6 +11040,27 @@
|
|||||||
</translation>
|
</translation>
|
||||||
</translations>
|
</translations>
|
||||||
</concept_node>
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>uploading</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
<concept_node>
|
<concept_node>
|
||||||
<name>usage</name>
|
<name>usage</name>
|
||||||
<definition_loaded>false</definition_loaded>
|
<definition_loaded>false</definition_loaded>
|
||||||
@@ -11087,6 +11108,27 @@
|
|||||||
</translation>
|
</translation>
|
||||||
</translations>
|
</translations>
|
||||||
</concept_node>
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>edituploaded</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
<concept_node>
|
<concept_node>
|
||||||
<name>insert</name>
|
<name>insert</name>
|
||||||
<definition_loaded>false</definition_loaded>
|
<definition_loaded>false</definition_loaded>
|
||||||
@@ -11907,6 +11949,37 @@
|
|||||||
</folder_node>
|
</folder_node>
|
||||||
</children>
|
</children>
|
||||||
</folder_node>
|
</folder_node>
|
||||||
|
<folder_node>
|
||||||
|
<name>exportlogs</name>
|
||||||
|
<children>
|
||||||
|
<folder_node>
|
||||||
|
<name>fields</name>
|
||||||
|
<children>
|
||||||
|
<concept_node>
|
||||||
|
<name>createdat</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
|
</children>
|
||||||
|
</folder_node>
|
||||||
|
</children>
|
||||||
|
</folder_node>
|
||||||
<folder_node>
|
<folder_node>
|
||||||
<name>general</name>
|
<name>general</name>
|
||||||
<children>
|
<children>
|
||||||
@@ -12377,6 +12450,32 @@
|
|||||||
</concept_node>
|
</concept_node>
|
||||||
</children>
|
</children>
|
||||||
</folder_node>
|
</folder_node>
|
||||||
|
<folder_node>
|
||||||
|
<name>errors</name>
|
||||||
|
<children>
|
||||||
|
<concept_node>
|
||||||
|
<name>notfound</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
|
</children>
|
||||||
|
</folder_node>
|
||||||
<folder_node>
|
<folder_node>
|
||||||
<name>itemtypes</name>
|
<name>itemtypes</name>
|
||||||
<children>
|
<children>
|
||||||
@@ -29164,6 +29263,48 @@
|
|||||||
</translation>
|
</translation>
|
||||||
</translations>
|
</translations>
|
||||||
</concept_node>
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>purchases_by_ro_detail</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>purchases_by_ro_summary</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
<concept_node>
|
<concept_node>
|
||||||
<name>qc_sheet</name>
|
<name>qc_sheet</name>
|
||||||
<definition_loaded>false</definition_loaded>
|
<definition_loaded>false</definition_loaded>
|
||||||
@@ -29185,6 +29326,27 @@
|
|||||||
</translation>
|
</translation>
|
||||||
</translations>
|
</translations>
|
||||||
</concept_node>
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>ro_totals</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
<concept_node>
|
<concept_node>
|
||||||
<name>ro_with_description</name>
|
<name>ro_with_description</name>
|
||||||
<definition_loaded>false</definition_loaded>
|
<definition_loaded>false</definition_loaded>
|
||||||
@@ -30675,6 +30837,27 @@
|
|||||||
</translation>
|
</translation>
|
||||||
</translations>
|
</translations>
|
||||||
</concept_node>
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>exportlogs</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
<concept_node>
|
<concept_node>
|
||||||
<name>jobs</name>
|
<name>jobs</name>
|
||||||
<definition_loaded>false</definition_loaded>
|
<definition_loaded>false</definition_loaded>
|
||||||
@@ -30766,6 +30949,27 @@
|
|||||||
<folder_node>
|
<folder_node>
|
||||||
<name>templates</name>
|
<name>templates</name>
|
||||||
<children>
|
<children>
|
||||||
|
<concept_node>
|
||||||
|
<name>attendance</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
<concept_node>
|
<concept_node>
|
||||||
<name>attendance_employee</name>
|
<name>attendance_employee</name>
|
||||||
<definition_loaded>false</definition_loaded>
|
<definition_loaded>false</definition_loaded>
|
||||||
@@ -30787,6 +30991,27 @@
|
|||||||
</translation>
|
</translation>
|
||||||
</translations>
|
</translations>
|
||||||
</concept_node>
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>attendance_summary</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
<concept_node>
|
<concept_node>
|
||||||
<name>credits_not_received_date</name>
|
<name>credits_not_received_date</name>
|
||||||
<definition_loaded>false</definition_loaded>
|
<definition_loaded>false</definition_loaded>
|
||||||
@@ -30850,6 +31075,90 @@
|
|||||||
</translation>
|
</translation>
|
||||||
</translations>
|
</translations>
|
||||||
</concept_node>
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>export_payables</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>export_payments</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>export_receivables</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>gsr_by_delivery_date</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
<concept_node>
|
<concept_node>
|
||||||
<name>gsr_by_estimator</name>
|
<name>gsr_by_estimator</name>
|
||||||
<definition_loaded>false</definition_loaded>
|
<definition_loaded>false</definition_loaded>
|
||||||
@@ -30871,6 +31180,27 @@
|
|||||||
</translation>
|
</translation>
|
||||||
</translations>
|
</translations>
|
||||||
</concept_node>
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>gsr_by_exported_date</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
<concept_node>
|
<concept_node>
|
||||||
<name>gsr_by_make</name>
|
<name>gsr_by_make</name>
|
||||||
<definition_loaded>false</definition_loaded>
|
<definition_loaded>false</definition_loaded>
|
||||||
@@ -30892,6 +31222,69 @@
|
|||||||
</translation>
|
</translation>
|
||||||
</translations>
|
</translations>
|
||||||
</concept_node>
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>gsr_by_referral</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>gsr_by_ro</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>gsr_by_source</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
<concept_node>
|
<concept_node>
|
||||||
<name>gsr_labor_only</name>
|
<name>gsr_labor_only</name>
|
||||||
<definition_loaded>false</definition_loaded>
|
<definition_loaded>false</definition_loaded>
|
||||||
@@ -31186,6 +31579,90 @@
|
|||||||
</translation>
|
</translation>
|
||||||
</translations>
|
</translations>
|
||||||
</concept_node>
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>open_orders_estimator</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>open_orders_source</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>parts_backorder</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>payments_by_date</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
<concept_node>
|
<concept_node>
|
||||||
<name>payments_by_date_type</name>
|
<name>payments_by_date_type</name>
|
||||||
<definition_loaded>false</definition_loaded>
|
<definition_loaded>false</definition_loaded>
|
||||||
@@ -31417,6 +31894,27 @@
|
|||||||
</translation>
|
</translation>
|
||||||
</translations>
|
</translations>
|
||||||
</concept_node>
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>thank_you_date</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
<concept_node>
|
<concept_node>
|
||||||
<name>timetickets</name>
|
<name>timetickets</name>
|
||||||
<definition_loaded>false</definition_loaded>
|
<definition_loaded>false</definition_loaded>
|
||||||
@@ -31480,6 +31978,27 @@
|
|||||||
</translation>
|
</translation>
|
||||||
</translations>
|
</translations>
|
||||||
</concept_node>
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>unclaimed_hrs</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
<concept_node>
|
<concept_node>
|
||||||
<name>void_ros</name>
|
<name>void_ros</name>
|
||||||
<definition_loaded>false</definition_loaded>
|
<definition_loaded>false</definition_loaded>
|
||||||
@@ -31501,6 +32020,48 @@
|
|||||||
</translation>
|
</translation>
|
||||||
</translations>
|
</translations>
|
||||||
</concept_node>
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>work_in_progress_labour</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>work_in_progress_payables</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
</children>
|
</children>
|
||||||
</folder_node>
|
</folder_node>
|
||||||
</children>
|
</children>
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
"jsreport-browser-client-dist": "^1.3.0",
|
"jsreport-browser-client-dist": "^1.3.0",
|
||||||
"libphonenumber-js": "^1.9.17",
|
"libphonenumber-js": "^1.9.17",
|
||||||
"logrocket": "^1.2.0",
|
"logrocket": "^1.2.0",
|
||||||
|
"markerjs2": "^2.8.1",
|
||||||
"moment-business-days": "^1.2.0",
|
"moment-business-days": "^1.2.0",
|
||||||
"phone": "^2.4.21",
|
"phone": "^2.4.21",
|
||||||
"preval.macro": "^5.0.0",
|
"preval.macro": "^5.0.0",
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import { useTranslation } from "react-i18next";
|
|||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
import { Route, Switch } from "react-router-dom";
|
import { Route, Switch } from "react-router-dom";
|
||||||
import { createStructuredSelector } from "reselect";
|
import { createStructuredSelector } from "reselect";
|
||||||
|
import DocumentEditorContainer from "../components/document-editor/document-editor.container";
|
||||||
import ErrorBoundary from "../components/error-boundary/error-boundary.component";
|
import ErrorBoundary from "../components/error-boundary/error-boundary.component";
|
||||||
//Component Imports
|
//Component Imports
|
||||||
import LoadingSpinner from "../components/loading-spinner/loading-spinner.component";
|
import LoadingSpinner from "../components/loading-spinner/loading-spinner.component";
|
||||||
@@ -39,8 +40,12 @@ const mapDispatchToProps = (dispatch) => ({
|
|||||||
|
|
||||||
export function App({ checkUserSession, currentUser, online, setOnline }) {
|
export function App({ checkUserSession, currentUser, online, setOnline }) {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
if (!navigator.onLine) {
|
||||||
|
setOnline(false);
|
||||||
|
}
|
||||||
|
|
||||||
checkUserSession();
|
checkUserSession();
|
||||||
}, [checkUserSession]);
|
}, [checkUserSession, setOnline]);
|
||||||
|
|
||||||
//const b = Grid.useBreakpoint();
|
//const b = Grid.useBreakpoint();
|
||||||
// console.log("Breakpoints:", b);
|
// console.log("Breakpoints:", b);
|
||||||
@@ -118,6 +123,13 @@ export function App({ checkUserSession, currentUser, online, setOnline }) {
|
|||||||
component={TechPageContainer}
|
component={TechPageContainer}
|
||||||
/>
|
/>
|
||||||
</ErrorBoundary>
|
</ErrorBoundary>
|
||||||
|
<ErrorBoundary>
|
||||||
|
<PrivateRoute
|
||||||
|
isAuthorized={currentUser.authorized}
|
||||||
|
path="/edit"
|
||||||
|
component={DocumentEditorContainer}
|
||||||
|
/>
|
||||||
|
</ErrorBoundary>
|
||||||
</Suspense>
|
</Suspense>
|
||||||
</Switch>
|
</Switch>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { Link } from "react-router-dom";
|
|||||||
import { logImEXEvent } from "../../firebase/firebase.utils";
|
import { logImEXEvent } from "../../firebase/firebase.utils";
|
||||||
import CurrencyFormatter from "../../utils/CurrencyFormatter";
|
import CurrencyFormatter from "../../utils/CurrencyFormatter";
|
||||||
import { DateFormatter, DateTimeFormatter } from "../../utils/DateFormatter";
|
import { DateFormatter, DateTimeFormatter } from "../../utils/DateFormatter";
|
||||||
import { alphaSort } from "../../utils/sorters";
|
import { alphaSort, dateSort } from "../../utils/sorters";
|
||||||
import PaymentExportButton from "../payment-export-button/payment-export-button.component";
|
import PaymentExportButton from "../payment-export-button/payment-export-button.component";
|
||||||
import PaymentsExportAllButton from "../payments-export-all-button/payments-export-all-button.component";
|
import PaymentsExportAllButton from "../payments-export-all-button/payments-export-all-button.component";
|
||||||
|
|
||||||
@@ -41,19 +41,12 @@ export default function AccountingPayablesTableComponent({
|
|||||||
title: t("payments.fields.date"),
|
title: t("payments.fields.date"),
|
||||||
dataIndex: "date",
|
dataIndex: "date",
|
||||||
key: "date",
|
key: "date",
|
||||||
sorter: (a, b) => alphaSort(a.date, b.date),
|
sorter: (a, b) => dateSort(a.date, b.date),
|
||||||
sortOrder:
|
sortOrder:
|
||||||
state.sortedInfo.columnKey === "date" && state.sortedInfo.order,
|
state.sortedInfo.columnKey === "date" && state.sortedInfo.order,
|
||||||
render: (text, record) => <DateFormatter>{record.date}</DateFormatter>,
|
render: (text, record) => <DateFormatter>{record.date}</DateFormatter>,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: t("payments.fields.date"),
|
|
||||||
dataIndex: "date",
|
|
||||||
key: "date",
|
|
||||||
sorter: (a, b) => alphaSort(a.date, b.date),
|
|
||||||
sortOrder:
|
|
||||||
state.sortedInfo.columnKey === "date" && state.sortedInfo.order,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: t("jobs.fields.owner"),
|
title: t("jobs.fields.owner"),
|
||||||
dataIndex: "owner",
|
dataIndex: "owner",
|
||||||
|
|||||||
@@ -0,0 +1,113 @@
|
|||||||
|
//import "tui-image-editor/dist/tui-image-editor.css";
|
||||||
|
import { Result } from "antd";
|
||||||
|
import * as markerjs2 from "markerjs2";
|
||||||
|
import React, { useCallback, useEffect, useRef, useState } from "react";
|
||||||
|
import { useTranslation } from "react-i18next";
|
||||||
|
import { connect } from "react-redux";
|
||||||
|
import { createStructuredSelector } from "reselect";
|
||||||
|
import {
|
||||||
|
selectBodyshop,
|
||||||
|
selectCurrentUser,
|
||||||
|
} from "../../redux/user/user.selectors";
|
||||||
|
import { handleUpload } from "../documents-upload/documents-upload.utility";
|
||||||
|
import { GenerateSrcUrl } from "../jobs-documents-gallery/job-documents.utility";
|
||||||
|
import LoadingSpinner from "../loading-spinner/loading-spinner.component";
|
||||||
|
|
||||||
|
const mapStateToProps = createStructuredSelector({
|
||||||
|
currentUser: selectCurrentUser,
|
||||||
|
bodyshop: selectBodyshop,
|
||||||
|
});
|
||||||
|
const mapDispatchToProps = (dispatch) => ({
|
||||||
|
//setUserLanguage: language => dispatch(setUserLanguage(language))
|
||||||
|
});
|
||||||
|
|
||||||
|
export function DocumentEditorComponent({ currentUser, bodyshop, document }) {
|
||||||
|
const imgRef = useRef(null);
|
||||||
|
const [loading, setLoading] = useState(false);
|
||||||
|
const [uploaded, setuploaded] = useState(false);
|
||||||
|
const markerArea = useRef(null);
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
const triggerUpload = useCallback(
|
||||||
|
async (dataUrl) => {
|
||||||
|
setLoading(true);
|
||||||
|
handleUpload(
|
||||||
|
{
|
||||||
|
filename: `${document.key.split("/").pop()}-${Date.now()}.jpg`,
|
||||||
|
file: await b64toBlob(dataUrl),
|
||||||
|
onSuccess: () => {
|
||||||
|
setLoading(false);
|
||||||
|
setuploaded(true);
|
||||||
|
},
|
||||||
|
onError: () => setLoading(false),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
bodyshop: bodyshop,
|
||||||
|
uploaded_by: currentUser.email,
|
||||||
|
jobId: document.jobid,
|
||||||
|
//billId: billId,
|
||||||
|
tagsArray: ["edited"],
|
||||||
|
//callback: callbackAfterUpload,
|
||||||
|
}
|
||||||
|
);
|
||||||
|
},
|
||||||
|
[bodyshop, currentUser, document]
|
||||||
|
);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (imgRef.current !== null) {
|
||||||
|
// create a marker.js MarkerArea
|
||||||
|
markerArea.current = new markerjs2.MarkerArea(imgRef.current);
|
||||||
|
console.log(`markerArea.current`, markerArea.current);
|
||||||
|
// attach an event handler to assign annotated image back to our image element
|
||||||
|
markerArea.current.addCloseEventListener((closeEvent) => {
|
||||||
|
console.log("Close Event", closeEvent);
|
||||||
|
});
|
||||||
|
|
||||||
|
markerArea.current.addRenderEventListener((dataUrl) => {
|
||||||
|
imgRef.current.src = dataUrl;
|
||||||
|
markerArea.current.close();
|
||||||
|
triggerUpload(dataUrl);
|
||||||
|
});
|
||||||
|
// launch marker.js
|
||||||
|
|
||||||
|
markerArea.current.renderAtNaturalSize = true;
|
||||||
|
markerArea.current.renderImageType = "image/jpeg";
|
||||||
|
markerArea.current.renderImageQuality = 1;
|
||||||
|
//markerArea.current.settings.displayMode = "inline";
|
||||||
|
markerArea.current.show();
|
||||||
|
}
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
}, [triggerUpload]);
|
||||||
|
|
||||||
|
async function b64toBlob(url) {
|
||||||
|
const res = await fetch(url);
|
||||||
|
return await res.blob();
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
{!loading && !uploaded && (
|
||||||
|
<img
|
||||||
|
ref={imgRef}
|
||||||
|
src={GenerateSrcUrl(document)}
|
||||||
|
alt="sample"
|
||||||
|
crossOrigin="anonymous"
|
||||||
|
style={{ maxWidth: "90vw", maxHeight: "90vh" }}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
{loading && <LoadingSpinner message={t("documents.labels.uploading")} />}
|
||||||
|
{uploaded && (
|
||||||
|
<Result
|
||||||
|
status="success"
|
||||||
|
title={t("documents.successes.edituploaded")}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default connect(
|
||||||
|
mapStateToProps,
|
||||||
|
mapDispatchToProps
|
||||||
|
)(DocumentEditorComponent);
|
||||||
@@ -0,0 +1,59 @@
|
|||||||
|
import { useQuery } from "@apollo/client";
|
||||||
|
import { Result } from "antd";
|
||||||
|
import queryString from "query-string";
|
||||||
|
import React, { useEffect } from "react";
|
||||||
|
import { useTranslation } from "react-i18next";
|
||||||
|
import { connect } from "react-redux";
|
||||||
|
import { useLocation } from "react-router";
|
||||||
|
import { QUERY_BODYSHOP } from "../../graphql/bodyshop.queries";
|
||||||
|
import { GET_DOCUMENT_BY_PK } from "../../graphql/documents.queries";
|
||||||
|
import { setBodyshop } from "../../redux/user/user.actions";
|
||||||
|
import AlertComponent from "../alert/alert.component";
|
||||||
|
import LoadingSpinner from "../loading-spinner/loading-spinner.component";
|
||||||
|
import DocumentEditor from "./document-editor.component";
|
||||||
|
|
||||||
|
const mapDispatchToProps = (dispatch) => ({
|
||||||
|
setBodyshop: (bs) => dispatch(setBodyshop(bs)),
|
||||||
|
});
|
||||||
|
|
||||||
|
export default connect(null, mapDispatchToProps)(DocumentEditorContainer);
|
||||||
|
|
||||||
|
export function DocumentEditorContainer({ setBodyshop }) {
|
||||||
|
//Get the image details for the image to be saved.
|
||||||
|
//Get the document id from the search string.
|
||||||
|
const { documentId } = queryString.parse(useLocation().search);
|
||||||
|
const { t } = useTranslation();
|
||||||
|
const {
|
||||||
|
loading: loadingShop,
|
||||||
|
error: errorShop,
|
||||||
|
data: dataShop,
|
||||||
|
} = useQuery(QUERY_BODYSHOP, {
|
||||||
|
fetchPolicy: "network-only",
|
||||||
|
});
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (dataShop) setBodyshop(dataShop.bodyshops[0]);
|
||||||
|
}, [dataShop, setBodyshop]);
|
||||||
|
|
||||||
|
const { loading, error, data } = useQuery(GET_DOCUMENT_BY_PK, {
|
||||||
|
variables: { documentId },
|
||||||
|
skip: !documentId,
|
||||||
|
});
|
||||||
|
|
||||||
|
if (loading || loadingShop) return <LoadingSpinner />;
|
||||||
|
if (error || errorShop)
|
||||||
|
return (
|
||||||
|
<AlertComponent
|
||||||
|
message={error.message || errorShop.message}
|
||||||
|
type="error"
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
|
||||||
|
if (!data || !data.documents_by_pk)
|
||||||
|
return <Result status="404" title={t("general.errors.notfound")} />;
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<DocumentEditor document={data ? data.documents_by_pk : null} />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -21,8 +21,10 @@ export const handleUpload = (ev, context) => {
|
|||||||
const { onError, onSuccess, onProgress } = ev;
|
const { onError, onSuccess, onProgress } = ev;
|
||||||
const { bodyshop, jobId } = context;
|
const { bodyshop, jobId } = context;
|
||||||
|
|
||||||
let key = `${bodyshop.id}/${jobId}/${ev.file.name.replace(/\.[^/.]+$/, "")}`;
|
const fileName = ev.file.name || ev.filename;
|
||||||
let extension = ev.file.name.split(".").pop();
|
|
||||||
|
let key = `${bodyshop.id}/${jobId}/${fileName.replace(/\.[^/.]+$/, "")}`;
|
||||||
|
let extension = fileName.split(".").pop();
|
||||||
uploadToCloudinary(
|
uploadToCloudinary(
|
||||||
key,
|
key,
|
||||||
extension,
|
extension,
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ import { createStructuredSelector } from "reselect";
|
|||||||
import { DELETE_JOB_LINE_BY_PK } from "../../graphql/jobs-lines.queries";
|
import { DELETE_JOB_LINE_BY_PK } from "../../graphql/jobs-lines.queries";
|
||||||
import { selectJobReadOnly } from "../../redux/application/application.selectors";
|
import { selectJobReadOnly } from "../../redux/application/application.selectors";
|
||||||
import { setModalContext } from "../../redux/modals/modals.actions";
|
import { setModalContext } from "../../redux/modals/modals.actions";
|
||||||
|
import { selectTechnician } from "../../redux/tech/tech.selectors";
|
||||||
import { onlyUnique } from "../../utils/arrayHelper";
|
import { onlyUnique } from "../../utils/arrayHelper";
|
||||||
import CurrencyFormatter from "../../utils/CurrencyFormatter";
|
import CurrencyFormatter from "../../utils/CurrencyFormatter";
|
||||||
import { alphaSort } from "../../utils/sorters";
|
import { alphaSort } from "../../utils/sorters";
|
||||||
@@ -37,6 +38,7 @@ import PartsOrderModalContainer from "../parts-order-modal/parts-order-modal.con
|
|||||||
const mapStateToProps = createStructuredSelector({
|
const mapStateToProps = createStructuredSelector({
|
||||||
//currentUser: selectCurrentUser
|
//currentUser: selectCurrentUser
|
||||||
jobRO: selectJobReadOnly,
|
jobRO: selectJobReadOnly,
|
||||||
|
technician: selectTechnician,
|
||||||
});
|
});
|
||||||
|
|
||||||
const mapDispatchToProps = (dispatch) => ({
|
const mapDispatchToProps = (dispatch) => ({
|
||||||
@@ -48,6 +50,7 @@ const mapDispatchToProps = (dispatch) => ({
|
|||||||
|
|
||||||
export function JobLinesComponent({
|
export function JobLinesComponent({
|
||||||
jobRO,
|
jobRO,
|
||||||
|
technician,
|
||||||
setPartsOrderContext,
|
setPartsOrderContext,
|
||||||
loading,
|
loading,
|
||||||
refetch,
|
refetch,
|
||||||
@@ -364,7 +367,8 @@ export function JobLinesComponent({
|
|||||||
disabled={
|
disabled={
|
||||||
(job && !job.converted) ||
|
(job && !job.converted) ||
|
||||||
(selectedLines.length > 0 ? false : true) ||
|
(selectedLines.length > 0 ? false : true) ||
|
||||||
jobRO
|
jobRO ||
|
||||||
|
technician
|
||||||
}
|
}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setPartsOrderContext({
|
setPartsOrderContext({
|
||||||
@@ -399,7 +403,7 @@ export function JobLinesComponent({
|
|||||||
<Button>{t("jobs.actions.mark")}</Button>
|
<Button>{t("jobs.actions.mark")}</Button>
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
<Button
|
<Button
|
||||||
disabled={jobRO}
|
disabled={jobRO || technician}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setJobLineEditContext({
|
setJobLineEditContext({
|
||||||
actions: { refetch: refetch },
|
actions: { refetch: refetch },
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
import { DetermineFileType } from "../documents-upload/documents-upload.utility";
|
||||||
|
|
||||||
|
export const GenerateSrcUrl = (value) => {
|
||||||
|
let extension = value.extension;
|
||||||
|
if (extension && extension.includes("heic")) extension = "jpg";
|
||||||
|
|
||||||
|
return `${process.env.REACT_APP_CLOUDINARY_ENDPOINT}/${DetermineFileType(
|
||||||
|
value.type
|
||||||
|
)}/upload/${value.key}${extension ? `.${extension}` : ""}`;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const GenerateThumbUrl = (value) =>
|
||||||
|
`${process.env.REACT_APP_CLOUDINARY_ENDPOINT}/${DetermineFileType(
|
||||||
|
value.type
|
||||||
|
)}/upload/${process.env.REACT_APP_CLOUDINARY_THUMB_TRANSFORMATIONS}/${
|
||||||
|
value.key
|
||||||
|
}`;
|
||||||
@@ -1,10 +1,11 @@
|
|||||||
import { FileExcelFilled } from "@ant-design/icons";
|
import { FileExcelFilled, EditFilled, SyncOutlined } from "@ant-design/icons";
|
||||||
import { Card, Col, Row, Space } from "antd";
|
import { Card, Col, Row, Space, Button } from "antd";
|
||||||
import React, { useEffect, useState } from "react";
|
import React, { useEffect, useState } from "react";
|
||||||
import Gallery from "react-grid-gallery";
|
import Gallery from "react-grid-gallery";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import DocumentsUploadComponent from "../documents-upload/documents-upload.component";
|
import DocumentsUploadComponent from "../documents-upload/documents-upload.component";
|
||||||
import { DetermineFileType } from "../documents-upload/documents-upload.utility";
|
import { DetermineFileType } from "../documents-upload/documents-upload.utility";
|
||||||
|
import { GenerateSrcUrl, GenerateThumbUrl } from "./job-documents.utility";
|
||||||
import JobsDocumentsDownloadButton from "./jobs-document-gallery.download.component";
|
import JobsDocumentsDownloadButton from "./jobs-document-gallery.download.component";
|
||||||
import JobsDocumentsGalleryReassign from "./jobs-document-gallery.reassign.component";
|
import JobsDocumentsGalleryReassign from "./jobs-document-gallery.reassign.component";
|
||||||
import JobsDocumentsDeleteButton from "./jobs-documents-gallery.delete.component";
|
import JobsDocumentsDeleteButton from "./jobs-documents-gallery.delete.component";
|
||||||
@@ -22,6 +23,25 @@ function JobsDocumentsComponent({
|
|||||||
}) {
|
}) {
|
||||||
const [galleryImages, setgalleryImages] = useState({ images: [], other: [] });
|
const [galleryImages, setgalleryImages] = useState({ images: [], other: [] });
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
const [index, setIndex] = useState(0);
|
||||||
|
|
||||||
|
const onCurrentImageChange = (index) => {
|
||||||
|
setIndex(index);
|
||||||
|
};
|
||||||
|
|
||||||
|
// useEffect(() => {
|
||||||
|
// console.log("Added event listening for reteching.");
|
||||||
|
// window.addEventListener("storage", (ev) => {
|
||||||
|
// if (ev.key === "refetch" && ev.newValue === true) {
|
||||||
|
// refetch && refetch();
|
||||||
|
// localStorage.setItem("refetch", false);
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
|
||||||
|
// return () => {
|
||||||
|
// window.removeEventListener("storage");
|
||||||
|
// };
|
||||||
|
// }, [refetch]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
let documents = data.reduce(
|
let documents = data.reduce(
|
||||||
@@ -29,16 +49,8 @@ function JobsDocumentsComponent({
|
|||||||
const fileType = DetermineFileType(value.type);
|
const fileType = DetermineFileType(value.type);
|
||||||
if (value.type.startsWith("image")) {
|
if (value.type.startsWith("image")) {
|
||||||
acc.images.push({
|
acc.images.push({
|
||||||
src: `${
|
src: GenerateSrcUrl(value),
|
||||||
process.env.REACT_APP_CLOUDINARY_ENDPOINT
|
thumbnail: GenerateThumbUrl(value),
|
||||||
}/${DetermineFileType(value.type)}/upload/${value.key}${
|
|
||||||
value.extension ? `.${value.extension}` : ""
|
|
||||||
}`,
|
|
||||||
thumbnail: `${
|
|
||||||
process.env.REACT_APP_CLOUDINARY_ENDPOINT
|
|
||||||
}/${DetermineFileType(value.type)}/upload/${
|
|
||||||
process.env.REACT_APP_CLOUDINARY_THUMB_TRANSFORMATIONS
|
|
||||||
}/${value.key}`,
|
|
||||||
thumbnailHeight: 225,
|
thumbnailHeight: 225,
|
||||||
thumbnailWidth: 225,
|
thumbnailWidth: 225,
|
||||||
isSelected: false,
|
isSelected: false,
|
||||||
@@ -52,28 +64,17 @@ function JobsDocumentsComponent({
|
|||||||
} else {
|
} else {
|
||||||
let thumb;
|
let thumb;
|
||||||
switch (fileType) {
|
switch (fileType) {
|
||||||
case "video":
|
|
||||||
thumb = `${process.env.REACT_APP_CLOUDINARY_ENDPOINT}/${fileType}/upload/${process.env.REACT_APP_CLOUDINARY_THUMB_TRANSFORMATIONS}/${value.key}`;
|
|
||||||
break;
|
|
||||||
case "raw":
|
case "raw":
|
||||||
thumb = `${window.location.origin}/file.png`;
|
thumb = `${window.location.origin}/file.png`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
thumb = `${
|
thumb = GenerateThumbUrl(value);
|
||||||
process.env.REACT_APP_CLOUDINARY_ENDPOINT
|
|
||||||
}/${fileType}/upload/${
|
|
||||||
process.env.REACT_APP_CLOUDINARY_THUMB_TRANSFORMATIONS
|
|
||||||
}/${value.key}${value.extension ? `.${value.extension}` : ""}`;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
const fileName = value.key.split("/").pop();
|
const fileName = value.key.split("/").pop();
|
||||||
acc.other.push({
|
acc.other.push({
|
||||||
src: `${
|
src: GenerateSrcUrl(value),
|
||||||
process.env.REACT_APP_CLOUDINARY_ENDPOINT
|
|
||||||
}/${fileType}/upload/${value.key}${
|
|
||||||
value.extension ? `.${value.extension}` : ""
|
|
||||||
}`,
|
|
||||||
thumbnail: thumb,
|
thumbnail: thumb,
|
||||||
tags: [
|
tags: [
|
||||||
{
|
{
|
||||||
@@ -119,6 +120,9 @@ function JobsDocumentsComponent({
|
|||||||
<Row gutter={[16, 16]}>
|
<Row gutter={[16, 16]}>
|
||||||
<Col span={24}>
|
<Col span={24}>
|
||||||
<Space wrap>
|
<Space wrap>
|
||||||
|
<Button onClick={() => refetch && refetch()}>
|
||||||
|
<SyncOutlined />
|
||||||
|
</Button>
|
||||||
<JobsDocumentsGallerySelectAllComponent
|
<JobsDocumentsGallerySelectAllComponent
|
||||||
galleryImages={galleryImages}
|
galleryImages={galleryImages}
|
||||||
setGalleryImages={setgalleryImages}
|
setGalleryImages={setgalleryImages}
|
||||||
@@ -153,6 +157,27 @@ function JobsDocumentsComponent({
|
|||||||
<Gallery
|
<Gallery
|
||||||
images={galleryImages.images}
|
images={galleryImages.images}
|
||||||
backdropClosesModal={true}
|
backdropClosesModal={true}
|
||||||
|
currentImageWillChange={onCurrentImageChange}
|
||||||
|
customControls={[
|
||||||
|
<Button
|
||||||
|
style={{
|
||||||
|
float: "right",
|
||||||
|
|
||||||
|
zIndex: "5",
|
||||||
|
}}
|
||||||
|
onClick={() => {
|
||||||
|
console.log(`Clicked`);
|
||||||
|
const newWindow = window.open(
|
||||||
|
`${window.location.protocol}//${window.location.host}/edit?documentId=${galleryImages.images[index].id}`,
|
||||||
|
"_blank",
|
||||||
|
"noopener,noreferrer"
|
||||||
|
);
|
||||||
|
if (newWindow) newWindow.opener = null;
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<EditFilled style={{}} />
|
||||||
|
</Button>,
|
||||||
|
]}
|
||||||
onClickImage={(props) => {
|
onClickImage={(props) => {
|
||||||
window.open(
|
window.open(
|
||||||
props.target.src,
|
props.target.src,
|
||||||
|
|||||||
@@ -1,5 +1,20 @@
|
|||||||
import { gql } from "@apollo/client";
|
import { gql } from "@apollo/client";
|
||||||
|
|
||||||
|
export const GET_DOCUMENT_BY_PK = gql`
|
||||||
|
query GET_DOCUMENT_BY_PK($documentId: uuid!) {
|
||||||
|
documents_by_pk(id: $documentId) {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
key
|
||||||
|
type
|
||||||
|
size
|
||||||
|
takenat
|
||||||
|
extension
|
||||||
|
jobid
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
export const GET_DOCUMENTS_BY_JOB = gql`
|
export const GET_DOCUMENTS_BY_JOB = gql`
|
||||||
query GET_DOCUMENTS_BY_JOB($jobId: uuid!) {
|
query GET_DOCUMENTS_BY_JOB($jobId: uuid!) {
|
||||||
jobs_by_pk(id: $jobId) {
|
jobs_by_pk(id: $jobId) {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
},
|
},
|
||||||
"errors": {
|
"errors": {
|
||||||
"deleting": "Error encountered while deleting allocation. {{message}}",
|
"deleting": "Error encountered while deleting allocation. {{message}}",
|
||||||
"saving": "Error while allocating. {{message}}",
|
"saving": "Error while allocating. {{message}}",
|
||||||
"validation": "Please ensure all fields are entered correctly. "
|
"validation": "Please ensure all fields are entered correctly. "
|
||||||
},
|
},
|
||||||
"fields": {
|
"fields": {
|
||||||
@@ -701,10 +701,12 @@
|
|||||||
"upload": "Upload",
|
"upload": "Upload",
|
||||||
"upload_limitexceeded": "Uploading all selected documents will exceed the job storage limit for your shop. ",
|
"upload_limitexceeded": "Uploading all selected documents will exceed the job storage limit for your shop. ",
|
||||||
"upload_limitexceeded_title": "Unable to upload document(s)",
|
"upload_limitexceeded_title": "Unable to upload document(s)",
|
||||||
|
"uploading": "Uploading...",
|
||||||
"usage": "of job storage used. ({{used}} / {{total}})"
|
"usage": "of job storage used. ({{used}} / {{total}})"
|
||||||
},
|
},
|
||||||
"successes": {
|
"successes": {
|
||||||
"delete": "Document(s) deleted successfully.",
|
"delete": "Document(s) deleted successfully.",
|
||||||
|
"edituploaded": "Edited document uploaded successfully. Please close this window and refresh the documents list.",
|
||||||
"insert": "Uploaded document successfully. ",
|
"insert": "Uploaded document successfully. ",
|
||||||
"updated": "Document updated successfully. "
|
"updated": "Document updated successfully. "
|
||||||
}
|
}
|
||||||
@@ -767,6 +769,11 @@
|
|||||||
"unique_employee_number": "You must enter a unique employee number."
|
"unique_employee_number": "You must enter a unique employee number."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"exportlogs": {
|
||||||
|
"fields": {
|
||||||
|
"createdat": "Created At"
|
||||||
|
}
|
||||||
|
},
|
||||||
"general": {
|
"general": {
|
||||||
"actions": {
|
"actions": {
|
||||||
"add": "Add",
|
"add": "Add",
|
||||||
@@ -792,6 +799,9 @@
|
|||||||
"submitticket": "Submit a Support Ticket",
|
"submitticket": "Submit a Support Ticket",
|
||||||
"view": "View"
|
"view": "View"
|
||||||
},
|
},
|
||||||
|
"errors": {
|
||||||
|
"notfound": "No record was found."
|
||||||
|
},
|
||||||
"itemtypes": {
|
"itemtypes": {
|
||||||
"contract": "CC Contract",
|
"contract": "CC Contract",
|
||||||
"courtesycar": "Courtesy Car",
|
"courtesycar": "Courtesy Car",
|
||||||
@@ -1742,7 +1752,10 @@
|
|||||||
"payment_receipt": "Payment Receipt",
|
"payment_receipt": "Payment Receipt",
|
||||||
"payment_request": "Payment Request",
|
"payment_request": "Payment Request",
|
||||||
"payments_by_job": "Job Payments",
|
"payments_by_job": "Job Payments",
|
||||||
|
"purchases_by_ro_detail": "Purchases - Detail",
|
||||||
|
"purchases_by_ro_summary": "Purchases - Summary",
|
||||||
"qc_sheet": "Quality Control Sheet",
|
"qc_sheet": "Quality Control Sheet",
|
||||||
|
"ro_totals": "RO Totals",
|
||||||
"ro_with_description": "RO Summary with Descriptions",
|
"ro_with_description": "RO Summary with Descriptions",
|
||||||
"supplement_request": "Supplement Request",
|
"supplement_request": "Supplement Request",
|
||||||
"thank_you_ro": "Thank You Letter",
|
"thank_you_ro": "Thank You Letter",
|
||||||
@@ -1843,6 +1856,7 @@
|
|||||||
"objects": {
|
"objects": {
|
||||||
"appointments": "Appointments",
|
"appointments": "Appointments",
|
||||||
"bills": "Bills",
|
"bills": "Bills",
|
||||||
|
"exportlogs": "Export Logs",
|
||||||
"jobs": "Jobs",
|
"jobs": "Jobs",
|
||||||
"payments": "Payments",
|
"payments": "Payments",
|
||||||
"timetickets": "Timetickets"
|
"timetickets": "Timetickets"
|
||||||
@@ -1850,12 +1864,22 @@
|
|||||||
"vendor": "Vendor"
|
"vendor": "Vendor"
|
||||||
},
|
},
|
||||||
"templates": {
|
"templates": {
|
||||||
|
"attendance": "Attendance (All Employees)",
|
||||||
"attendance_employee": "Employee Attendance",
|
"attendance_employee": "Employee Attendance",
|
||||||
|
"attendance_summary": "Attendance Summary (All Employees)",
|
||||||
"credits_not_received_date": "Credits not Received by Date",
|
"credits_not_received_date": "Credits not Received by Date",
|
||||||
"estimator_detail": "Jobs by Estimator (Detail)",
|
"estimator_detail": "Jobs by Estimator (Detail)",
|
||||||
"estimator_summary": "Jobs by Estimator (Summary)",
|
"estimator_summary": "Jobs by Estimator (Summary)",
|
||||||
|
"export_payables": "Export Log - Payables",
|
||||||
|
"export_payments": "Export Log - Payments",
|
||||||
|
"export_receivables": "Export Log - Receivables",
|
||||||
|
"gsr_by_delivery_date": "Gross Sales by Delivery Date",
|
||||||
"gsr_by_estimator": "Gross Sales by Estimator",
|
"gsr_by_estimator": "Gross Sales by Estimator",
|
||||||
|
"gsr_by_exported_date": "Gross Sales by Export Date",
|
||||||
"gsr_by_make": "Gross Sales by Vehicle Make",
|
"gsr_by_make": "Gross Sales by Vehicle Make",
|
||||||
|
"gsr_by_referral": "Gross Sales by Referral Source",
|
||||||
|
"gsr_by_ro": "Gross Sales by RO",
|
||||||
|
"gsr_by_source": "Gross Sales by Insurance Company'",
|
||||||
"gsr_labor_only": "Gross Sales - Labor Only",
|
"gsr_labor_only": "Gross Sales - Labor Only",
|
||||||
"hours_sold_detail_closed": "Hours Sold Detail - Closed",
|
"hours_sold_detail_closed": "Hours Sold Detail - Closed",
|
||||||
"hours_sold_detail_closed_source": "Hours Sold Detail - Closed by Source",
|
"hours_sold_detail_closed_source": "Hours Sold Detail - Closed by Source",
|
||||||
@@ -1870,6 +1894,10 @@
|
|||||||
"job_costing_ro_estimator": "Job Costing by Estimator",
|
"job_costing_ro_estimator": "Job Costing by Estimator",
|
||||||
"job_costing_ro_source": "Job Costing by RO Source",
|
"job_costing_ro_source": "Job Costing by RO Source",
|
||||||
"open_orders": "Open Orders by Date",
|
"open_orders": "Open Orders by Date",
|
||||||
|
"open_orders_estimator": "Open Orders by Estimator",
|
||||||
|
"open_orders_source": "Open Orders by Insurance Company",
|
||||||
|
"parts_backorder": "Backordered Parts",
|
||||||
|
"payments_by_date": "Payments by Date",
|
||||||
"payments_by_date_type": "Payments by Date Range",
|
"payments_by_date_type": "Payments by Date Range",
|
||||||
"purchases_by_cost_center_detail": "Purchases by Cost Center (Detail)",
|
"purchases_by_cost_center_detail": "Purchases by Cost Center (Detail)",
|
||||||
"purchases_by_cost_center_summary": "Purchases by Cost Center (Summary)",
|
"purchases_by_cost_center_summary": "Purchases by Cost Center (Summary)",
|
||||||
@@ -1881,10 +1909,14 @@
|
|||||||
"purchases_grouped_by_vendor_summary": "Purchases Grouped by Vendor - Summary",
|
"purchases_grouped_by_vendor_summary": "Purchases Grouped by Vendor - Summary",
|
||||||
"schedule": "Appointment Schedule",
|
"schedule": "Appointment Schedule",
|
||||||
"supplement_ratio_source": "Supplement Ratio by Source",
|
"supplement_ratio_source": "Supplement Ratio by Source",
|
||||||
|
"thank_you_date": "Thank You Letters",
|
||||||
"timetickets": "Time Tickets",
|
"timetickets": "Time Tickets",
|
||||||
"timetickets_employee": "Employee Time Tickets",
|
"timetickets_employee": "Employee Time Tickets",
|
||||||
"timetickets_summary": "Time Tickets Summary",
|
"timetickets_summary": "Time Tickets Summary",
|
||||||
"void_ros": "Void ROs"
|
"unclaimed_hrs": "Unclaimed Hours",
|
||||||
|
"void_ros": "Void ROs",
|
||||||
|
"work_in_progress_labour": "Work in Progress - Labor",
|
||||||
|
"work_in_progress_payables": "Work in Progress - Payables"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scoreboard": {
|
"scoreboard": {
|
||||||
|
|||||||
@@ -701,10 +701,12 @@
|
|||||||
"upload": "Subir",
|
"upload": "Subir",
|
||||||
"upload_limitexceeded": "",
|
"upload_limitexceeded": "",
|
||||||
"upload_limitexceeded_title": "",
|
"upload_limitexceeded_title": "",
|
||||||
|
"uploading": "",
|
||||||
"usage": ""
|
"usage": ""
|
||||||
},
|
},
|
||||||
"successes": {
|
"successes": {
|
||||||
"delete": "Documento eliminado con éxito.",
|
"delete": "Documento eliminado con éxito.",
|
||||||
|
"edituploaded": "",
|
||||||
"insert": "Documento cargado con éxito.",
|
"insert": "Documento cargado con éxito.",
|
||||||
"updated": ""
|
"updated": ""
|
||||||
}
|
}
|
||||||
@@ -767,6 +769,11 @@
|
|||||||
"unique_employee_number": ""
|
"unique_employee_number": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"exportlogs": {
|
||||||
|
"fields": {
|
||||||
|
"createdat": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
"general": {
|
"general": {
|
||||||
"actions": {
|
"actions": {
|
||||||
"add": "",
|
"add": "",
|
||||||
@@ -792,6 +799,9 @@
|
|||||||
"submitticket": "",
|
"submitticket": "",
|
||||||
"view": ""
|
"view": ""
|
||||||
},
|
},
|
||||||
|
"errors": {
|
||||||
|
"notfound": ""
|
||||||
|
},
|
||||||
"itemtypes": {
|
"itemtypes": {
|
||||||
"contract": "",
|
"contract": "",
|
||||||
"courtesycar": "",
|
"courtesycar": "",
|
||||||
@@ -1742,7 +1752,10 @@
|
|||||||
"payment_receipt": "",
|
"payment_receipt": "",
|
||||||
"payment_request": "",
|
"payment_request": "",
|
||||||
"payments_by_job": "",
|
"payments_by_job": "",
|
||||||
|
"purchases_by_ro_detail": "",
|
||||||
|
"purchases_by_ro_summary": "",
|
||||||
"qc_sheet": "",
|
"qc_sheet": "",
|
||||||
|
"ro_totals": "",
|
||||||
"ro_with_description": "",
|
"ro_with_description": "",
|
||||||
"supplement_request": "",
|
"supplement_request": "",
|
||||||
"thank_you_ro": "",
|
"thank_you_ro": "",
|
||||||
@@ -1843,6 +1856,7 @@
|
|||||||
"objects": {
|
"objects": {
|
||||||
"appointments": "",
|
"appointments": "",
|
||||||
"bills": "",
|
"bills": "",
|
||||||
|
"exportlogs": "",
|
||||||
"jobs": "",
|
"jobs": "",
|
||||||
"payments": "",
|
"payments": "",
|
||||||
"timetickets": ""
|
"timetickets": ""
|
||||||
@@ -1850,12 +1864,22 @@
|
|||||||
"vendor": ""
|
"vendor": ""
|
||||||
},
|
},
|
||||||
"templates": {
|
"templates": {
|
||||||
|
"attendance": "",
|
||||||
"attendance_employee": "",
|
"attendance_employee": "",
|
||||||
|
"attendance_summary": "",
|
||||||
"credits_not_received_date": "",
|
"credits_not_received_date": "",
|
||||||
"estimator_detail": "",
|
"estimator_detail": "",
|
||||||
"estimator_summary": "",
|
"estimator_summary": "",
|
||||||
|
"export_payables": "",
|
||||||
|
"export_payments": "",
|
||||||
|
"export_receivables": "",
|
||||||
|
"gsr_by_delivery_date": "",
|
||||||
"gsr_by_estimator": "",
|
"gsr_by_estimator": "",
|
||||||
|
"gsr_by_exported_date": "",
|
||||||
"gsr_by_make": "",
|
"gsr_by_make": "",
|
||||||
|
"gsr_by_referral": "",
|
||||||
|
"gsr_by_ro": "",
|
||||||
|
"gsr_by_source": "",
|
||||||
"gsr_labor_only": "",
|
"gsr_labor_only": "",
|
||||||
"hours_sold_detail_closed": "",
|
"hours_sold_detail_closed": "",
|
||||||
"hours_sold_detail_closed_source": "",
|
"hours_sold_detail_closed_source": "",
|
||||||
@@ -1870,6 +1894,10 @@
|
|||||||
"job_costing_ro_estimator": "",
|
"job_costing_ro_estimator": "",
|
||||||
"job_costing_ro_source": "",
|
"job_costing_ro_source": "",
|
||||||
"open_orders": "",
|
"open_orders": "",
|
||||||
|
"open_orders_estimator": "",
|
||||||
|
"open_orders_source": "",
|
||||||
|
"parts_backorder": "",
|
||||||
|
"payments_by_date": "",
|
||||||
"payments_by_date_type": "",
|
"payments_by_date_type": "",
|
||||||
"purchases_by_cost_center_detail": "",
|
"purchases_by_cost_center_detail": "",
|
||||||
"purchases_by_cost_center_summary": "",
|
"purchases_by_cost_center_summary": "",
|
||||||
@@ -1881,10 +1909,14 @@
|
|||||||
"purchases_grouped_by_vendor_summary": "",
|
"purchases_grouped_by_vendor_summary": "",
|
||||||
"schedule": "",
|
"schedule": "",
|
||||||
"supplement_ratio_source": "",
|
"supplement_ratio_source": "",
|
||||||
|
"thank_you_date": "",
|
||||||
"timetickets": "",
|
"timetickets": "",
|
||||||
"timetickets_employee": "",
|
"timetickets_employee": "",
|
||||||
"timetickets_summary": "",
|
"timetickets_summary": "",
|
||||||
"void_ros": ""
|
"unclaimed_hrs": "",
|
||||||
|
"void_ros": "",
|
||||||
|
"work_in_progress_labour": "",
|
||||||
|
"work_in_progress_payables": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scoreboard": {
|
"scoreboard": {
|
||||||
|
|||||||
@@ -701,10 +701,12 @@
|
|||||||
"upload": "Télécharger",
|
"upload": "Télécharger",
|
||||||
"upload_limitexceeded": "",
|
"upload_limitexceeded": "",
|
||||||
"upload_limitexceeded_title": "",
|
"upload_limitexceeded_title": "",
|
||||||
|
"uploading": "",
|
||||||
"usage": ""
|
"usage": ""
|
||||||
},
|
},
|
||||||
"successes": {
|
"successes": {
|
||||||
"delete": "Le document a bien été supprimé.",
|
"delete": "Le document a bien été supprimé.",
|
||||||
|
"edituploaded": "",
|
||||||
"insert": "Document téléchargé avec succès.",
|
"insert": "Document téléchargé avec succès.",
|
||||||
"updated": ""
|
"updated": ""
|
||||||
}
|
}
|
||||||
@@ -767,6 +769,11 @@
|
|||||||
"unique_employee_number": ""
|
"unique_employee_number": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"exportlogs": {
|
||||||
|
"fields": {
|
||||||
|
"createdat": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
"general": {
|
"general": {
|
||||||
"actions": {
|
"actions": {
|
||||||
"add": "",
|
"add": "",
|
||||||
@@ -792,6 +799,9 @@
|
|||||||
"submitticket": "",
|
"submitticket": "",
|
||||||
"view": ""
|
"view": ""
|
||||||
},
|
},
|
||||||
|
"errors": {
|
||||||
|
"notfound": ""
|
||||||
|
},
|
||||||
"itemtypes": {
|
"itemtypes": {
|
||||||
"contract": "",
|
"contract": "",
|
||||||
"courtesycar": "",
|
"courtesycar": "",
|
||||||
@@ -1742,7 +1752,10 @@
|
|||||||
"payment_receipt": "",
|
"payment_receipt": "",
|
||||||
"payment_request": "",
|
"payment_request": "",
|
||||||
"payments_by_job": "",
|
"payments_by_job": "",
|
||||||
|
"purchases_by_ro_detail": "",
|
||||||
|
"purchases_by_ro_summary": "",
|
||||||
"qc_sheet": "",
|
"qc_sheet": "",
|
||||||
|
"ro_totals": "",
|
||||||
"ro_with_description": "",
|
"ro_with_description": "",
|
||||||
"supplement_request": "",
|
"supplement_request": "",
|
||||||
"thank_you_ro": "",
|
"thank_you_ro": "",
|
||||||
@@ -1843,6 +1856,7 @@
|
|||||||
"objects": {
|
"objects": {
|
||||||
"appointments": "",
|
"appointments": "",
|
||||||
"bills": "",
|
"bills": "",
|
||||||
|
"exportlogs": "",
|
||||||
"jobs": "",
|
"jobs": "",
|
||||||
"payments": "",
|
"payments": "",
|
||||||
"timetickets": ""
|
"timetickets": ""
|
||||||
@@ -1850,12 +1864,22 @@
|
|||||||
"vendor": ""
|
"vendor": ""
|
||||||
},
|
},
|
||||||
"templates": {
|
"templates": {
|
||||||
|
"attendance": "",
|
||||||
"attendance_employee": "",
|
"attendance_employee": "",
|
||||||
|
"attendance_summary": "",
|
||||||
"credits_not_received_date": "",
|
"credits_not_received_date": "",
|
||||||
"estimator_detail": "",
|
"estimator_detail": "",
|
||||||
"estimator_summary": "",
|
"estimator_summary": "",
|
||||||
|
"export_payables": "",
|
||||||
|
"export_payments": "",
|
||||||
|
"export_receivables": "",
|
||||||
|
"gsr_by_delivery_date": "",
|
||||||
"gsr_by_estimator": "",
|
"gsr_by_estimator": "",
|
||||||
|
"gsr_by_exported_date": "",
|
||||||
"gsr_by_make": "",
|
"gsr_by_make": "",
|
||||||
|
"gsr_by_referral": "",
|
||||||
|
"gsr_by_ro": "",
|
||||||
|
"gsr_by_source": "",
|
||||||
"gsr_labor_only": "",
|
"gsr_labor_only": "",
|
||||||
"hours_sold_detail_closed": "",
|
"hours_sold_detail_closed": "",
|
||||||
"hours_sold_detail_closed_source": "",
|
"hours_sold_detail_closed_source": "",
|
||||||
@@ -1870,6 +1894,10 @@
|
|||||||
"job_costing_ro_estimator": "",
|
"job_costing_ro_estimator": "",
|
||||||
"job_costing_ro_source": "",
|
"job_costing_ro_source": "",
|
||||||
"open_orders": "",
|
"open_orders": "",
|
||||||
|
"open_orders_estimator": "",
|
||||||
|
"open_orders_source": "",
|
||||||
|
"parts_backorder": "",
|
||||||
|
"payments_by_date": "",
|
||||||
"payments_by_date_type": "",
|
"payments_by_date_type": "",
|
||||||
"purchases_by_cost_center_detail": "",
|
"purchases_by_cost_center_detail": "",
|
||||||
"purchases_by_cost_center_summary": "",
|
"purchases_by_cost_center_summary": "",
|
||||||
@@ -1881,10 +1909,14 @@
|
|||||||
"purchases_grouped_by_vendor_summary": "",
|
"purchases_grouped_by_vendor_summary": "",
|
||||||
"schedule": "",
|
"schedule": "",
|
||||||
"supplement_ratio_source": "",
|
"supplement_ratio_source": "",
|
||||||
|
"thank_you_date": "",
|
||||||
"timetickets": "",
|
"timetickets": "",
|
||||||
"timetickets_employee": "",
|
"timetickets_employee": "",
|
||||||
"timetickets_summary": "",
|
"timetickets_summary": "",
|
||||||
"void_ros": ""
|
"unclaimed_hrs": "",
|
||||||
|
"void_ros": "",
|
||||||
|
"work_in_progress_labour": "",
|
||||||
|
"work_in_progress_payables": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scoreboard": {
|
"scoreboard": {
|
||||||
|
|||||||
@@ -230,6 +230,14 @@ export const TemplateList = (type, context) => {
|
|||||||
disabled: false,
|
disabled: false,
|
||||||
group: "financial",
|
group: "financial",
|
||||||
},
|
},
|
||||||
|
ro_totals: {
|
||||||
|
title: i18n.t("printcenter.jobs.ro_totals"),
|
||||||
|
description: "All Jobs Notes",
|
||||||
|
subject: i18n.t("printcenter.jobs.ro_totals"),
|
||||||
|
key: "ro_totals",
|
||||||
|
disabled: false,
|
||||||
|
group: "financial",
|
||||||
|
},
|
||||||
job_costing_ro: {
|
job_costing_ro: {
|
||||||
title: i18n.t("printcenter.jobs.job_costing_ro"),
|
title: i18n.t("printcenter.jobs.job_costing_ro"),
|
||||||
description: "All Jobs Notes",
|
description: "All Jobs Notes",
|
||||||
@@ -238,6 +246,22 @@ export const TemplateList = (type, context) => {
|
|||||||
disabled: false,
|
disabled: false,
|
||||||
group: "financial",
|
group: "financial",
|
||||||
},
|
},
|
||||||
|
purchases_by_ro_detail: {
|
||||||
|
title: i18n.t("printcenter.jobs.purchases_by_ro_detail"),
|
||||||
|
description: "All Jobs Notes",
|
||||||
|
subject: i18n.t("printcenter.jobs.purchases_by_ro_detail"),
|
||||||
|
key: "purchases_by_ro_detail",
|
||||||
|
disabled: false,
|
||||||
|
group: "financial",
|
||||||
|
},
|
||||||
|
purchases_by_ro_summary: {
|
||||||
|
title: i18n.t("printcenter.jobs.purchases_by_ro_summary"),
|
||||||
|
description: "All Jobs Notes",
|
||||||
|
subject: i18n.t("printcenter.jobs.purchases_by_ro_summary"),
|
||||||
|
key: "purchases_by_ro_summary",
|
||||||
|
disabled: false,
|
||||||
|
group: "financial",
|
||||||
|
},
|
||||||
filing_coversheet_portrait: {
|
filing_coversheet_portrait: {
|
||||||
title: i18n.t("printcenter.jobs.filing_coversheet_portrait"),
|
title: i18n.t("printcenter.jobs.filing_coversheet_portrait"),
|
||||||
description: "All Jobs Notes",
|
description: "All Jobs Notes",
|
||||||
@@ -361,6 +385,16 @@ export const TemplateList = (type, context) => {
|
|||||||
...(!type || type === "csi" ? {} : {}),
|
...(!type || type === "csi" ? {} : {}),
|
||||||
...(!type || type === "report_center"
|
...(!type || type === "report_center"
|
||||||
? {
|
? {
|
||||||
|
payments_by_date: {
|
||||||
|
title: i18n.t("reportcenter.templates.payments_by_date"),
|
||||||
|
subject: i18n.t("reportcenter.templates.payments_by_date"),
|
||||||
|
key: "payments_by_date",
|
||||||
|
disabled: false,
|
||||||
|
rangeFilter: {
|
||||||
|
object: i18n.t("reportcenter.labels.objects.payments"),
|
||||||
|
field: i18n.t("payments.fields.date"),
|
||||||
|
},
|
||||||
|
},
|
||||||
payments_by_date_type: {
|
payments_by_date_type: {
|
||||||
title: i18n.t("reportcenter.templates.payments_by_date_type"),
|
title: i18n.t("reportcenter.templates.payments_by_date_type"),
|
||||||
subject: i18n.t("reportcenter.templates.payments_by_date_type"),
|
subject: i18n.t("reportcenter.templates.payments_by_date_type"),
|
||||||
@@ -521,7 +555,28 @@ export const TemplateList = (type, context) => {
|
|||||||
idtype: "employee",
|
idtype: "employee",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
},
|
},
|
||||||
|
attendance: {
|
||||||
|
title: i18n.t("reportcenter.templates.attendance"),
|
||||||
|
subject: i18n.t("reportcenter.templates.attendance"),
|
||||||
|
key: "attendance",
|
||||||
|
|
||||||
|
disabled: false,
|
||||||
|
rangeFilter: {
|
||||||
|
object: i18n.t("reportcenter.labels.objects.timetickets"),
|
||||||
|
field: i18n.t("timetickets.fields.date"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
attendance_summary: {
|
||||||
|
title: i18n.t("reportcenter.templates.attendance_summary"),
|
||||||
|
subject: i18n.t("reportcenter.templates.attendance_summary"),
|
||||||
|
key: "attendance_summary",
|
||||||
|
|
||||||
|
disabled: false,
|
||||||
|
rangeFilter: {
|
||||||
|
object: i18n.t("reportcenter.labels.objects.timetickets"),
|
||||||
|
field: i18n.t("timetickets.fields.date"),
|
||||||
|
},
|
||||||
|
},
|
||||||
attendance_employee: {
|
attendance_employee: {
|
||||||
title: i18n.t("reportcenter.templates.attendance_employee"),
|
title: i18n.t("reportcenter.templates.attendance_employee"),
|
||||||
subject: i18n.t("reportcenter.templates.attendance_employee"),
|
subject: i18n.t("reportcenter.templates.attendance_employee"),
|
||||||
@@ -789,6 +844,67 @@ export const TemplateList = (type, context) => {
|
|||||||
field: i18n.t("jobs.fields.date_invoiced"),
|
field: i18n.t("jobs.fields.date_invoiced"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
gsr_by_delivery_date: {
|
||||||
|
title: i18n.t("reportcenter.templates.gsr_by_delivery_date"),
|
||||||
|
description: "",
|
||||||
|
subject: i18n.t("reportcenter.templates.gsr_by_delivery_date"),
|
||||||
|
key: "gsr_by_delivery_date",
|
||||||
|
//idtype: "vendor",
|
||||||
|
disabled: false,
|
||||||
|
rangeFilter: {
|
||||||
|
object: i18n.t("reportcenter.labels.objects.jobs"),
|
||||||
|
field: i18n.t("jobs.fields.actual_delivery"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
gsr_by_referral: {
|
||||||
|
title: i18n.t("reportcenter.templates.gsr_by_referral"),
|
||||||
|
description: "",
|
||||||
|
subject: i18n.t("reportcenter.templates.gsr_by_referral"),
|
||||||
|
key: "gsr_by_referral",
|
||||||
|
//idtype: "vendor",
|
||||||
|
disabled: false,
|
||||||
|
rangeFilter: {
|
||||||
|
object: i18n.t("reportcenter.labels.objects.jobs"),
|
||||||
|
field: i18n.t("jobs.fields.date_invoiced"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
gsr_by_ro: {
|
||||||
|
title: i18n.t("reportcenter.templates.gsr_by_ro"),
|
||||||
|
description: "",
|
||||||
|
subject: i18n.t("reportcenter.templates.gsr_by_ro"),
|
||||||
|
key: "gsr_by_ro",
|
||||||
|
//idtype: "vendor",
|
||||||
|
disabled: false,
|
||||||
|
rangeFilter: {
|
||||||
|
object: i18n.t("reportcenter.labels.objects.jobs"),
|
||||||
|
field: i18n.t("jobs.fields.date_invoiced"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
gsr_by_source: {
|
||||||
|
title: i18n.t("reportcenter.templates.gsr_by_source"),
|
||||||
|
description: "",
|
||||||
|
subject: i18n.t("reportcenter.templates.gsr_by_source"),
|
||||||
|
key: "gsr_by_source",
|
||||||
|
//idtype: "vendor",
|
||||||
|
disabled: false,
|
||||||
|
rangeFilter: {
|
||||||
|
object: i18n.t("reportcenter.labels.objects.jobs"),
|
||||||
|
field: i18n.t("jobs.fields.date_invoiced"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
gsr_by_exported_date: {
|
||||||
|
title: i18n.t("reportcenter.templates.gsr_by_exported_date"),
|
||||||
|
description: "",
|
||||||
|
subject: i18n.t("reportcenter.templates.gsr_by_exported_date"),
|
||||||
|
key: "gsr_by_exported_date",
|
||||||
|
//idtype: "vendor",
|
||||||
|
disabled: false,
|
||||||
|
rangeFilter: {
|
||||||
|
object: i18n.t("reportcenter.labels.objects.jobs"),
|
||||||
|
field: i18n.t("jobs.fields.date_exported"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
gsr_by_estimator: {
|
gsr_by_estimator: {
|
||||||
title: i18n.t("reportcenter.templates.gsr_by_estimator"),
|
title: i18n.t("reportcenter.templates.gsr_by_estimator"),
|
||||||
description: "",
|
description: "",
|
||||||
@@ -825,6 +941,128 @@ export const TemplateList = (type, context) => {
|
|||||||
field: i18n.t("jobs.fields.date_open"),
|
field: i18n.t("jobs.fields.date_open"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
open_orders_estimator: {
|
||||||
|
title: i18n.t("reportcenter.templates.open_orders_estimator"),
|
||||||
|
description: "",
|
||||||
|
subject: i18n.t("reportcenter.templates.open_orders_estimator"),
|
||||||
|
key: "open_orders_estimator",
|
||||||
|
//idtype: "vendor",
|
||||||
|
disabled: false,
|
||||||
|
rangeFilter: {
|
||||||
|
object: i18n.t("reportcenter.labels.objects.jobs"),
|
||||||
|
field: i18n.t("jobs.fields.date_open"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
open_orders_source: {
|
||||||
|
title: i18n.t("reportcenter.templates.open_orders_source"),
|
||||||
|
description: "",
|
||||||
|
subject: i18n.t("reportcenter.templates.open_orders_source"),
|
||||||
|
key: "open_orders_source",
|
||||||
|
//idtype: "vendor",
|
||||||
|
disabled: false,
|
||||||
|
rangeFilter: {
|
||||||
|
object: i18n.t("reportcenter.labels.objects.jobs"),
|
||||||
|
field: i18n.t("jobs.fields.date_open"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
export_payables: {
|
||||||
|
title: i18n.t("reportcenter.templates.export_payables"),
|
||||||
|
description: "",
|
||||||
|
subject: i18n.t("reportcenter.templates.export_payables"),
|
||||||
|
key: "export_payables",
|
||||||
|
//idtype: "vendor",
|
||||||
|
disabled: false,
|
||||||
|
rangeFilter: {
|
||||||
|
object: i18n.t("reportcenter.labels.objects.exportlogs"),
|
||||||
|
field: i18n.t("exportlogs.fields.createdat"),
|
||||||
|
},
|
||||||
|
export_payments: {
|
||||||
|
title: i18n.t("reportcenter.templates.export_payments"),
|
||||||
|
description: "",
|
||||||
|
subject: i18n.t("reportcenter.templates.export_payments"),
|
||||||
|
key: "export_payments",
|
||||||
|
//idtype: "vendor",
|
||||||
|
disabled: false,
|
||||||
|
rangeFilter: {
|
||||||
|
object: i18n.t("reportcenter.labels.objects.exportlogs"),
|
||||||
|
field: i18n.t("exportlogs.fields.createdat"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
export_receivables: {
|
||||||
|
title: i18n.t("reportcenter.templates.export_receivables"),
|
||||||
|
description: "",
|
||||||
|
subject: i18n.t("reportcenter.templates.export_receivables"),
|
||||||
|
key: "export_receivables",
|
||||||
|
//idtype: "vendor",
|
||||||
|
disabled: false,
|
||||||
|
rangeFilter: {
|
||||||
|
object: i18n.t("reportcenter.labels.objects.exportlogs"),
|
||||||
|
field: i18n.t("exportlogs.fields.createdat"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
parts_backorder: {
|
||||||
|
title: i18n.t("reportcenter.templates.parts_backorder"),
|
||||||
|
description: "",
|
||||||
|
subject: i18n.t("reportcenter.templates.parts_backorder"),
|
||||||
|
key: "parts_backorder",
|
||||||
|
//idtype: "vendor",
|
||||||
|
disabled: false,
|
||||||
|
rangeFilter: {
|
||||||
|
object: i18n.t("reportcenter.labels.objects.jobs"),
|
||||||
|
field: i18n.t("jobs.fields.actual_in"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
thank_you_date: {
|
||||||
|
title: i18n.t("reportcenter.templates.thank_you_date"),
|
||||||
|
description: "",
|
||||||
|
subject: i18n.t("reportcenter.templates.thank_you_date"),
|
||||||
|
key: "thank_you_date",
|
||||||
|
//idtype: "vendor",
|
||||||
|
disabled: false,
|
||||||
|
rangeFilter: {
|
||||||
|
object: i18n.t("reportcenter.labels.objects.jobs"),
|
||||||
|
field: i18n.t("jobs.fields.date_invoiced"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
unclaimed_hrs: {
|
||||||
|
title: i18n.t("reportcenter.templates.unclaimed_hrs"),
|
||||||
|
description: "",
|
||||||
|
subject: i18n.t("reportcenter.templates.unclaimed_hrs"),
|
||||||
|
key: "unclaimed_hrs",
|
||||||
|
//idtype: "vendor",
|
||||||
|
disabled: false,
|
||||||
|
rangeFilter: {
|
||||||
|
object: i18n.t("reportcenter.labels.objects.jobs"),
|
||||||
|
field: i18n.t("jobs.fields.date_open"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
work_in_progress_labour: {
|
||||||
|
title: i18n.t("reportcenter.templates.work_in_progress_labour"),
|
||||||
|
description: "",
|
||||||
|
subject: i18n.t("reportcenter.templates.work_in_progress_labour"),
|
||||||
|
key: "work_in_progress_labour",
|
||||||
|
//idtype: "vendor",
|
||||||
|
disabled: false,
|
||||||
|
rangeFilter: {
|
||||||
|
object: i18n.t("reportcenter.labels.objects.jobs"),
|
||||||
|
field: i18n.t("jobs.fields.date_open"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
work_in_progress_payables: {
|
||||||
|
title: i18n.t("reportcenter.templates.work_in_progress_payables"),
|
||||||
|
description: "",
|
||||||
|
subject: i18n.t(
|
||||||
|
"reportcenter.templates.work_in_progress_payables"
|
||||||
|
),
|
||||||
|
key: "work_in_progress_payables",
|
||||||
|
//idtype: "vendor",
|
||||||
|
disabled: false,
|
||||||
|
rangeFilter: {
|
||||||
|
object: i18n.t("reportcenter.labels.objects.jobs"),
|
||||||
|
field: i18n.t("jobs.fields.date_open"),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
: {}),
|
: {}),
|
||||||
...(!type || type === "courtesycarcontract"
|
...(!type || type === "courtesycarcontract"
|
||||||
|
|||||||
@@ -8302,6 +8302,11 @@ map-visit@^1.0.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
object-visit "^1.0.0"
|
object-visit "^1.0.0"
|
||||||
|
|
||||||
|
markerjs2@^2.8.1:
|
||||||
|
version "2.8.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/markerjs2/-/markerjs2-2.8.1.tgz#33c455cc1edd8fa9a5e5b39ed782dcd1b923c917"
|
||||||
|
integrity sha512-M9AflvjOD5aIcBM0HZWW6u1h/NRdzfq73B9ILv1YehF88PeF0tYT5HIsi9PaSJ6EUOR/vWysZN08f3EyDCJixw==
|
||||||
|
|
||||||
material-colors@^1.2.1:
|
material-colors@^1.2.1:
|
||||||
version "1.2.6"
|
version "1.2.6"
|
||||||
resolved "https://registry.npmjs.org/material-colors/-/material-colors-1.2.6.tgz"
|
resolved "https://registry.npmjs.org/material-colors/-/material-colors-1.2.6.tgz"
|
||||||
|
|||||||
@@ -67,6 +67,12 @@ async function JobCostingMulti(req, res) {
|
|||||||
gpdollars: Dinero({ amount: 0 }),
|
gpdollars: Dinero({ amount: 0 }),
|
||||||
gppercent: null,
|
gppercent: null,
|
||||||
gppercentFormatted: null,
|
gppercentFormatted: null,
|
||||||
|
totalLaborGp: Dinero({ amount: 0 }),
|
||||||
|
totalPartsGp: Dinero({ amount: 0 }),
|
||||||
|
totalLaborGppercent: null,
|
||||||
|
totalLaborGppercentFormatted: null,
|
||||||
|
totalPartsGppercent: null,
|
||||||
|
totalPartsGppercentFormatted: null,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -149,12 +155,39 @@ async function JobCostingMulti(req, res) {
|
|||||||
multiSummary.summaryData.gpdollars.add(
|
multiSummary.summaryData.gpdollars.add(
|
||||||
costingData.summaryData.gpdollars
|
costingData.summaryData.gpdollars
|
||||||
);
|
);
|
||||||
|
|
||||||
|
multiSummary.summaryData.totalLaborGp =
|
||||||
|
multiSummary.summaryData.totalLaborGp.add(
|
||||||
|
costingData.summaryData.totalLaborGp
|
||||||
|
);
|
||||||
|
multiSummary.summaryData.totalPartsGp =
|
||||||
|
multiSummary.summaryData.totalPartsGp.add(
|
||||||
|
costingData.summaryData.totalPartsGp
|
||||||
|
);
|
||||||
|
|
||||||
console.timeEnd(`SummaryOfCostingData-${job.id}`);
|
console.timeEnd(`SummaryOfCostingData-${job.id}`);
|
||||||
//Take the summary data & add it to total summary data.
|
//Take the summary data & add it to total summary data.
|
||||||
});
|
});
|
||||||
|
|
||||||
//For each center, recalculate and toFormat() the values.
|
//For each center, recalculate and toFormat() the values.
|
||||||
multiSummary.summaryData.gpdollars;
|
|
||||||
|
multiSummary.summaryData.totalLaborGppercent = (
|
||||||
|
(multiSummary.summaryData.totalLaborGp.getAmount() /
|
||||||
|
multiSummary.summaryData.totalLaborSales.getAmount()) *
|
||||||
|
100
|
||||||
|
).toFixed(2);
|
||||||
|
multiSummary.summaryData.totalLaborGppercentFormatted = formatGpPercent(
|
||||||
|
multiSummary.summaryData.totalLaborGppercent
|
||||||
|
);
|
||||||
|
|
||||||
|
multiSummary.summaryData.totalPartsGppercent = (
|
||||||
|
(multiSummary.summaryData.totalPartsGp.getAmount() /
|
||||||
|
multiSummary.summaryData.totalPartsSales.getAmount()) *
|
||||||
|
100
|
||||||
|
).toFixed(2);
|
||||||
|
multiSummary.summaryData.totalPartsGppercentFormatted = formatGpPercent(
|
||||||
|
multiSummary.summaryData.totalPartsGppercent
|
||||||
|
);
|
||||||
|
|
||||||
multiSummary.summaryData.gppercent = (
|
multiSummary.summaryData.gppercent = (
|
||||||
(multiSummary.summaryData.gpdollars.getAmount() /
|
(multiSummary.summaryData.gpdollars.getAmount() /
|
||||||
@@ -418,7 +451,14 @@ function GenerateCostingData(job) {
|
|||||||
totalLaborCost: Dinero({ amount: 0 }),
|
totalLaborCost: Dinero({ amount: 0 }),
|
||||||
totalPartsCost: Dinero({ amount: 0 }),
|
totalPartsCost: Dinero({ amount: 0 }),
|
||||||
totalCost: Dinero({ amount: 0 }),
|
totalCost: Dinero({ amount: 0 }),
|
||||||
|
totalLaborGp: Dinero({ amount: 0 }),
|
||||||
|
totalPartsGp: Dinero({ amount: 0 }),
|
||||||
gpdollars: Dinero({ amount: 0 }),
|
gpdollars: Dinero({ amount: 0 }),
|
||||||
|
|
||||||
|
totalLaborGppercent: null,
|
||||||
|
totalLaborGppercentFormatted: null,
|
||||||
|
totalPartsGppercent: null,
|
||||||
|
totalPartsGppercentFormatted: null,
|
||||||
gppercent: null,
|
gppercent: null,
|
||||||
gppercentFormatted: null,
|
gppercentFormatted: null,
|
||||||
};
|
};
|
||||||
@@ -503,6 +543,31 @@ function GenerateCostingData(job) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Final summary data massaging.
|
//Final summary data massaging.
|
||||||
|
|
||||||
|
summaryData.totalLaborGp = summaryData.totalLaborSales.subtract(
|
||||||
|
summaryData.totalLaborCost
|
||||||
|
);
|
||||||
|
summaryData.totalLaborGppercent = (
|
||||||
|
(summaryData.totalLaborGp.getAmount() /
|
||||||
|
summaryData.totalLaborSales.getAmount()) *
|
||||||
|
100
|
||||||
|
).toFixed(2);
|
||||||
|
summaryData.totalLaborGppercentFormatted = formatGpPercent(
|
||||||
|
summaryData.totalLaborGppercent
|
||||||
|
);
|
||||||
|
|
||||||
|
summaryData.totalPartsGp = summaryData.totalPartsSales.subtract(
|
||||||
|
summaryData.totalPartsCost
|
||||||
|
);
|
||||||
|
summaryData.totalPartsGppercent = (
|
||||||
|
(summaryData.totalPartsGp.getAmount() /
|
||||||
|
summaryData.totalPartsSales.getAmount()) *
|
||||||
|
100
|
||||||
|
).toFixed(2);
|
||||||
|
summaryData.totalPartsGppercentFormatted = formatGpPercent(
|
||||||
|
summaryData.totalPartsGppercent
|
||||||
|
);
|
||||||
|
|
||||||
summaryData.gpdollars = summaryData.totalSales.subtract(
|
summaryData.gpdollars = summaryData.totalSales.subtract(
|
||||||
summaryData.totalCost
|
summaryData.totalCost
|
||||||
);
|
);
|
||||||
@@ -510,6 +575,7 @@ function GenerateCostingData(job) {
|
|||||||
(summaryData.gpdollars.getAmount() / summaryData.totalSales.getAmount()) *
|
(summaryData.gpdollars.getAmount() / summaryData.totalSales.getAmount()) *
|
||||||
100
|
100
|
||||||
).toFixed(2);
|
).toFixed(2);
|
||||||
|
|
||||||
if (isNaN(summaryData.gppercent)) summaryData.gppercentFormatted = 0;
|
if (isNaN(summaryData.gppercent)) summaryData.gppercentFormatted = 0;
|
||||||
else if (!isFinite(summaryData.gppercent))
|
else if (!isFinite(summaryData.gppercent))
|
||||||
summaryData.gppercentFormatted = "- ∞";
|
summaryData.gppercentFormatted = "- ∞";
|
||||||
|
|||||||
Reference in New Issue
Block a user