Patch level : 2.0 nopatch

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :

Tolte chiamate residue a os_dep.h
Aggiunta la possibilita' di arrotondare le quantita' in base all'unita' di misura


git-svn-id: svn://10.65.10.50/trunk@11028 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2003-04-17 09:27:00 +00:00
parent 84b187e5ea
commit 256f531d8e
6 changed files with 26 additions and 22 deletions

View File

@ -1,4 +1,6 @@
#define F_UM 101
#define F_DESCR 102
#define F_UMR 103
#define F_FC 104
#define F_UM 101
#define F_DESCR 102
#define F_UMR 103
#define F_FC 104
#define F_ROUND 105
#define F_DECIMALS 106

View File

@ -61,5 +61,21 @@ BEGIN
WARNING "Fattore di conversione obbligatorio se specificata l'unita' di misura di riferimento"
END
BOOLEAN F_ROUND
BEGIN
PROMPT 2 12 "Arrotondamento valori"
MESSAGE FALSE HIDE,F_DECIMALS
MESSAGE TRUE SHOW,F_DECIMALS
FIELD B0
END
NUMBER F_DECIMALS 2
BEGIN
PROMPT 32 12 "Decimali per arrotondamento "
FLAGS "U"
FIELD I0
END
ENDPAGE
ENDMASK

View File

@ -71,7 +71,6 @@ bool TConf_vendite::check_fields_iva(TMask_field& f, KEY k)
bool TConf_vendite::preprocess_config (TMask& mask, TConfig& config)
{
disable_menu_item(M_FILE_NEW);
disable_menu_item(M_FILE_REVERT);
if (_current == '5') // solo per configurazione "e"
{
TToken_string ric(config.get("RICERCACR"));
@ -117,7 +116,6 @@ bool TConf_vendite::preprocess_config (TMask& mask, TConfig& config)
bool TConf_vendite::postprocess_config (TMask& mask, TConfig& config)
{
enable_menu_item(M_FILE_NEW);
enable_menu_item(M_FILE_REVERT);
if (_current == '5') // solo per configurazione "e"
{
TToken_string ric;

View File

@ -1,5 +1,4 @@
#include <automask.h>
#include <os_dep.h>
#include <printer.h>
#include <tabapp.h>
@ -39,18 +38,9 @@ void TVendite_mask::get_printer_config(TString& config) const
bool TVendite_mask::get_printer_name(TString& name) const
{
TString16 config; get_printer_config(config);
TString config; get_printer_config(config);
TConfig ini(CONFIG_STAMPE, config);
if (ini.get_int("Type", NULL, -1, -1) >= 0)
{
const int num = ini.get_int("Number");
if (num >= 0)
{
TToken_string pn;
os_get_printer_names(pn);
name = pn.get(num);
}
}
name = ini.get("Name");
return name.not_empty();
}
@ -61,7 +51,6 @@ void TVendite_mask::reset_printer_config() const
ini.remove_all();
}
bool TVendite_mask::on_num_event(TOperable_field& o, TField_event e, long jolly)
{
switch(o.dlg())

View File

@ -8,7 +8,6 @@
#include <mov.h>
#include <rmov.h>
#include <rmoviva.h>
#include <os_dep.h>
#include "velib.h"
#include "../cg/cgsaldac.h"
@ -37,7 +36,7 @@ void TContabil_tsys::open()
{
TFilename outname(_conf->get("OutputFile"));
if (os_is_removable_drive(outname))
if (xvt_fsys_is_removable_drive(outname))
message_box("Inserisci un disco vuoto nel drive %c e premi Ok", outname[0]);
_output_file = new ofstream(outname, ios::binary|ios::app);
}

View File

@ -188,7 +188,7 @@ real TRifatturazione::get_price (const TString& codart, TString& um, real& quant
// chiave.add(um_base);
const TRectype& rcondv = cache().get(LF_RCONDV, chiave);
real old_price = rcondv.get("PREZZO"); // devi prendere il PREZZO dalle righe listino del listino con codice codlist
const real old_price = rcondv.get("PREZZO"); // devi prendere il PREZZO dalle righe listino del listino con codice codlist
real new_price;
if (old_price != ZERO)
{