Information générale
Catégorie:
Codage, syntaxe et commandes
I have a form called to print invoice, before the invoice sent to printer, I increase the invoice number and then print ..(in Multi user environment), my problem is when the invoice prompt the printer (which network printer to be used to print) ask user to select the printer, If the user click on the ok then invoice will print and number will be updated properly, Everything is OK , But the problem is user click cancel button then invoice will be cancelled to print but the invoice number already been increased. How to detect user to click on cancel and never print the invoice ? My Coding :
select docsetup
do whil !rlock()
endd
stor increase(invoicenumber) to tt_invno
repl tt_invno with invoicenumber
unlock
do report form invoice to printer prompt noconsole
Sorry for my english... Any has good suggestion or solution to solve this . If yes, Coding will be appreciated
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement