Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
271 B
2
Indexable
Never
 var typepay= frontol.currentDocument.payment.type.code;
 frontol.actions.showMessage(typepay);

if (typepay == 4)

    {

	 try
 {

  makeFiscalCall("commons/printLastDocument/", {});
 }
 catch (e)
 {
  frontol.actions.showError (e.message);
 }

 }

}