====== TRK Dispatch: auto-calc payroll ====== ===== Prepared system ===== First of all, you need to check and, if necessary, correct the settings. **Action:** Open menu System / Setting **Expectation:** The Dr Dispatch System Configuration window will open. **Action:** Select line "Trucking Preferences" **Expectation:** {{:trk_dispatch_auto-calc_payroll_settings.png?direct|}} ===== test 1. Document without "Gross Pay" and "Driver Pay" sum ===== **Action:** You need to create a download in the same way as in [[tc-11|TC11]], but skip filling out the gross pay and driver pay. **Expectation:** Completed document with the status "Assigned", but with empty fields "Gross Pay" and "Driver Pay" **Action:** Change document status to "Dispatched", then to "Empty". The first time you switch the state to Empty, there is no auto-calculation, so after the "empty" state, you need to switch again to "Assigned", then "Dispatched", and then again "Empty". **Expectation:** The message {{:msg_payrol_record_already_exists1.png?direct&300|}} **Action:** Make sure the message only appears once. **Expectation:** Due to the lack of an amount in the Gross Pay field, the calculation is not possible and a message should be displayed about this. {{:msg_payrol_autocalc_is_imposible.png?direct&300|}} ===== test 2. Document with "Gross Pay" and no "Driver Pay" amount ===== **Action:** You need to create a download in the same way as in [[tc-11|TC11]], but skip filling out the driver pay. **Expectation:** Completed document with the status "Assigned", but with empty fields "Gross Pay" and "Driver Pay" **Action:** Change document status to "Dispatched", then to "Empty". The first time you switch the state to Empty, there is **no auto-calculation**, so after the "empty" state, you need to switch again to "Assigned", then "Dispatched", and then again "Empty". **Expectation:** The message {{:msg_payrol_record_already_exists1.png?direct&300|}} **Action:** Make sure the message only appears once. **Expectation:** The automatically calculated amount should appear in the "Driver Pay" and "Profit" field.