recette2
parent
46cf9dcd70
commit
1a0ad22258
|
@ -63,7 +63,7 @@ function Emarge_QR_Code() {
|
|||
const [get_E_Document_PDF, setget_E_Document_PDF] = useState();
|
||||
const [selected_e_doc_id, setselected_e_doc_id] = useState();
|
||||
const [selected_e_doc_email, setselected_e_doc_email] = useState();
|
||||
const [selected_e_doc_secret, setselected_e_doc_secret] = useState();
|
||||
const [selected_e_doc_secret, setselected_e_doc_secret] = useState("");
|
||||
|
||||
const [is_valide_e_document, setis_valide_e_document] = useState(false);
|
||||
|
||||
|
@ -517,7 +517,7 @@ function Emarge_QR_Code() {
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div className="div_row_dialog">
|
||||
{/* <div className="div_row_dialog">
|
||||
<div className="session_caract_Dialog" > <b> Télephone </b>
|
||||
<TextField
|
||||
autoFocus
|
||||
|
@ -535,7 +535,7 @@ function Emarge_QR_Code() {
|
|||
}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>*/}
|
||||
|
||||
|
||||
|
||||
|
@ -764,7 +764,7 @@ function Emarge_QR_Code() {
|
|||
<Popup
|
||||
trigger={
|
||||
<Button variant="contained" className="bton_enreg" onClick={(e) => {
|
||||
|
||||
Signature_E_Document(1);
|
||||
}}>J'etais présent
|
||||
</Button>
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ import Link from '@mui/material/Link';
|
|||
import { PiDotsThree } from "react-icons/pi";
|
||||
import { gridClasses } from '@mui/x-data-grid';
|
||||
import {
|
||||
|
||||
|
||||
GridToolbarContainer,
|
||||
GridToolbarExportContainer,
|
||||
GridCsvExportMenuItem,
|
||||
|
@ -52,7 +52,7 @@ import {
|
|||
gridFilteredSortedRowIdsSelector,
|
||||
gridVisibleColumnFieldsSelector,
|
||||
GridToolbarExport,
|
||||
} from '@mui/x-data-grid';
|
||||
} from '@mui/x-data-grid';
|
||||
|
||||
//import { utils, writeFileXLSX } from "xlsx";
|
||||
|
||||
|
@ -62,49 +62,49 @@ const Partner_Facture = (props) => {
|
|||
const csvOptions = { delimiter: ';' };
|
||||
function CustomExportButton(props) {
|
||||
return (
|
||||
<GridToolbarExportContainer {...props}>
|
||||
<GridCsvExportMenuItem options={csvOptions} />
|
||||
|
||||
</GridToolbarExportContainer>
|
||||
<GridToolbarExportContainer {...props}>
|
||||
<GridCsvExportMenuItem options={csvOptions} />
|
||||
|
||||
</GridToolbarExportContainer>
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
function CustomToolbar() {
|
||||
|
||||
function CustomToolbar() {
|
||||
return (
|
||||
<GridToolbarContainer>
|
||||
<GridToolbarExport />
|
||||
</GridToolbarContainer>
|
||||
<GridToolbarContainer>
|
||||
<GridToolbarExport />
|
||||
</GridToolbarContainer>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
function gg() {
|
||||
|
||||
/* const wb = utils.book_new();
|
||||
|
||||
console.log(" ### selectionModel = ", Getall_Parter_Invoice_No_Filter_result);
|
||||
|
||||
var new_data2 = []
|
||||
const new_data = Getall_Parter_Invoice_No_Filter_result.map((x) => {
|
||||
|
||||
//---
|
||||
|
||||
var local_node = JSON.parse(x);
|
||||
console.log("### local_node = ", local_node);
|
||||
|
||||
new_data2.push(local_node);
|
||||
});
|
||||
|
||||
|
||||
console.log(" ### new_data2 = ", new_data2);
|
||||
|
||||
|
||||
|
||||
utils.book_append_sheet(wb, utils.json_to_sheet(new_data2));
|
||||
|
||||
writeFileXLSX(wb, "testyy.xlsx");*/
|
||||
/* const wb = utils.book_new();
|
||||
|
||||
console.log(" ### selectionModel = ", Getall_Parter_Invoice_No_Filter_result);
|
||||
|
||||
var new_data2 = []
|
||||
const new_data = Getall_Parter_Invoice_No_Filter_result.map((x) => {
|
||||
|
||||
//---
|
||||
|
||||
var local_node = JSON.parse(x);
|
||||
console.log("### local_node = ", local_node);
|
||||
|
||||
new_data2.push(local_node);
|
||||
});
|
||||
|
||||
|
||||
console.log(" ### new_data2 = ", new_data2);
|
||||
|
||||
|
||||
|
||||
utils.book_append_sheet(wb, utils.json_to_sheet(new_data2));
|
||||
|
||||
writeFileXLSX(wb, "testyy.xlsx");*/
|
||||
}
|
||||
|
||||
|
||||
|
@ -1071,7 +1071,7 @@ const Partner_Facture = (props) => {
|
|||
if (res.data.message.length > 0) {
|
||||
var mylocal_order = JSON.parse(res.data.message);
|
||||
|
||||
|
||||
// zzzzz
|
||||
if (mylocal_order.invoice_header_ref_interne)
|
||||
setp_detail_header_invoice_header_ref_interne(mylocal_order.invoice_header_ref_interne);
|
||||
|
||||
|
@ -2023,7 +2023,7 @@ const Partner_Facture = (props) => {
|
|||
setLoading(false);
|
||||
if (String(res.data.status) === "true") {
|
||||
//console.log(" In Get_Given_Paiement_Data res.data.status = " + res.data.status);
|
||||
//console.log(" In Get_Given_Paiement_Data res.data.message r_class = " + res.data.message);
|
||||
console.log(" In Get_Given_Paiement_Data res.data.message r_class = " + res.data.message);
|
||||
setGet_Given_Paiement_Data_api("true");
|
||||
setGet_Given_Paiement_Data_result(res.data.message);
|
||||
|
||||
|
@ -2051,11 +2051,14 @@ const Partner_Facture = (props) => {
|
|||
setp_detail_paiement_date(new Date().toLocaleDateString('fr-FR'));
|
||||
|
||||
|
||||
|
||||
if (mylocal_document.commentaire)
|
||||
setp_detail_paiement_comment(mylocal_document.commentaire);
|
||||
else
|
||||
setp_detail_paiement_comment("");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -3034,7 +3037,7 @@ const Partner_Facture = (props) => {
|
|||
|
||||
<div className="div_row" style={{ "border": "None", paddingRight: '10px' }}>
|
||||
|
||||
|
||||
|
||||
|
||||
<div className="session_data">
|
||||
<div style={{ "border": "None" }}>
|
||||
|
@ -3110,7 +3113,7 @@ const Partner_Facture = (props) => {
|
|||
}
|
||||
}}
|
||||
|
||||
|
||||
|
||||
|
||||
onRowDoubleClick={(newSelectionModel) => {
|
||||
setgridline_id(newSelectionModel.row.id);
|
||||
|
@ -3157,10 +3160,10 @@ const Partner_Facture = (props) => {
|
|||
rowsPerPageOptions={[10]}
|
||||
//disableSelectionOnClick
|
||||
components={{
|
||||
Toolbar: GridToolbar,
|
||||
Toolbar: GridToolbar,
|
||||
}}
|
||||
|
||||
|
||||
|
||||
//sx={datagridSx}
|
||||
getCellClassName={(params) => {
|
||||
|
||||
|
|
Loading…
Reference in New Issue