@fayz-ai/plugin-shop 0.24.7 → 0.24.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1711,6 +1711,10 @@ var SHIPMENT_LABEL = {
|
|
|
1711
1711
|
returned: "Devolvido",
|
|
1712
1712
|
cancelled: "Cancelado"
|
|
1713
1713
|
};
|
|
1714
|
+
function receivableRoute(bills) {
|
|
1715
|
+
const bill = (bills ?? [])[0];
|
|
1716
|
+
return bill?.financial_invoice_id ? `/financial/receivables/detail/${bill.financial_invoice_id}` : "/financial/receivables/list";
|
|
1717
|
+
}
|
|
1714
1718
|
function toModalInstallment(bill) {
|
|
1715
1719
|
return {
|
|
1716
1720
|
id: bill.id,
|
|
@@ -2160,7 +2164,7 @@ function OrderDetailView({ orderId, provider, onBack, fallback }) {
|
|
|
2160
2164
|
variant: "bare",
|
|
2161
2165
|
size: "bare",
|
|
2162
2166
|
type: "button",
|
|
2163
|
-
onClick: () => adminNavigateTo(
|
|
2167
|
+
onClick: () => adminNavigateTo(receivableRoute(receivable?.bills)),
|
|
2164
2168
|
className: "rounded-md border px-3 py-1.5 text-sm font-medium transition hover:bg-muted",
|
|
2165
2169
|
children: "Abrir no Financeiro"
|
|
2166
2170
|
}
|
|
@@ -4324,5 +4328,5 @@ var ShopPage = ({ provider, section }) => {
|
|
|
4324
4328
|
ShopPage.displayName = "ShopPage";
|
|
4325
4329
|
|
|
4326
4330
|
export { ShopOrderDetailSlot, ShopPage };
|
|
4327
|
-
//# sourceMappingURL=ShopPage-
|
|
4328
|
-
//# sourceMappingURL=ShopPage-
|
|
4331
|
+
//# sourceMappingURL=ShopPage-Z4MF334D.js.map
|
|
4332
|
+
//# sourceMappingURL=ShopPage-Z4MF334D.js.map
|