feature/IO-3357-Reynolds-and-Reynolds-DMS-API-Integration - Checkpoint

This commit is contained in:
Dave
2025-11-13 14:31:55 -05:00
parent 09ea6dff2b
commit 9c2c0b665d
9 changed files with 75 additions and 64 deletions

View File

@@ -37,8 +37,8 @@ export function DmsCustomerSelector(props) {
const rrProps = {
rrOpenRoLimit: rrOptions.openRoLimit,
onRrOpenRoFinished: rrOptions.onOpenRoFinished,
rrCashierPending: rrOptions.cashierPending,
onRrCashierFinished: rrOptions.onCashierFinished
rrValidationPending: rrOptions.validationPending,
onValidationFinished: rrOptions.onValidationFinished
};
return <RRCustomerSelector {...base} {...rrProps} />;
}

View File

@@ -49,8 +49,8 @@ export default function RRCustomerSelector({
socket,
rrOpenRoLimit = false,
onRrOpenRoFinished,
rrCashierPending = false,
onRrCashierFinished
rrValidationPending = false,
onValidationFinished
}) {
const { t } = useTranslation();
const [open, setOpen] = useState(false);
@@ -58,10 +58,10 @@ export default function RRCustomerSelector({
const [selectedCustomer, setSelectedCustomer] = useState(null);
const [refreshing, setRefreshing] = useState(false);
// Show dialog automatically when cashiering is pending
// Show dialog automatically when validation is pending
useEffect(() => {
if (rrCashierPending) setOpen(true);
}, [rrCashierPending]);
if (rrValidationPending) setOpen(true);
}, [rrValidationPending]);
// Listen for RR customer selection list
useEffect(() => {
@@ -196,22 +196,21 @@ export default function RRCustomerSelector({
/>
)}
{/* Cashiering step banner */}
{rrCashierPending && (
{/* Validation step banner */}
{rrValidationPending && (
<Alert
type="info"
showIcon
message="Complete cashiering in Reynolds"
message="Complete Validation in Reynolds"
description={
<div style={{ display: "flex", flexDirection: "column", gap: 8 }}>
<div>
We created the Repair Order in Reynolds. Please complete the cashiering/closeout steps in
Reynolds. When done, click <strong>Finished/Close</strong> to finalize and mark this export as
complete.
We created the Repair Order. Please validate the totals and taxes in the DMS system. When done,
click <strong>Finished</strong> to finalize and mark this export as complete.
</div>
<div>
<Space>
<Button type="primary" onClick={onRrCashierFinished}>
<Button type="primary" onClick={onValidationFinished}>
Finished / Close
</Button>
</Space>