Gestione split payment in fatturazione
git-svn-id: svn://10.65.10.50/branches/R_10_00@23056 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
61fd44bec6
commit
9ca7526e5a
5191
lv/lv2500.cpp
5191
lv/lv2500.cpp
File diff suppressed because it is too large
Load Diff
26
lv/lvlib.cpp
26
lv/lvlib.cpp
@ -1,20 +1,17 @@
|
||||
#include "lvlib.h"
|
||||
|
||||
#include "../cg/cglib01.h"
|
||||
#include "../mg/clifogiac.h"
|
||||
|
||||
#include "lvrcondv.h"
|
||||
#include "lvcondv.h"
|
||||
|
||||
#include "../mg/clifogiac.h"
|
||||
#include "../ve/pacchi.h"
|
||||
|
||||
#include <applicat.h>
|
||||
#include <config.h>
|
||||
#include <modaut.h>
|
||||
#include <dongle.h>
|
||||
#include <recset.h>
|
||||
#include <utility.h>
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////
|
||||
// Utilities
|
||||
///////////////////////////////////////////////////////////
|
||||
@ -63,7 +60,7 @@ bool lv_is_02_active()
|
||||
HIDDEN short __lv_02_active = 0x3;
|
||||
if (__lv_02_active == 0x3)
|
||||
{
|
||||
__lv_02_active = main_app().has_module(L2AUT);
|
||||
__lv_02_active = dongle().active(L2AUT);
|
||||
|
||||
if (__lv_02_active)
|
||||
{
|
||||
@ -1745,7 +1742,7 @@ bool TLV_report::msg_lv_tot_art(TVariant& var, const char * field) const
|
||||
|
||||
if(recset != NULL && cf != NULL)
|
||||
{
|
||||
const TString80 codart = recset->get("CODART").as_string();
|
||||
const TCodice_articolo codart = recset->get("CODART").as_string();
|
||||
const int es = esercizi().last();
|
||||
TRectype from(LF_CLIFOGIAC);
|
||||
real val;
|
||||
@ -1775,7 +1772,7 @@ bool TLV_report::msg_lv_consmese(TVariant& var) const
|
||||
{
|
||||
TRecordset* row_recset = cf->section().recordset();
|
||||
const long codcf = recset->get("CODCF").as_int();
|
||||
const TString80 codart = row_recset != NULL ? row_recset->get("CODART").as_string() : recset->get("CODART").as_string();
|
||||
const TCodice_articolo codart = row_recset != NULL ? row_recset->get("CODART").as_string() : recset->get("CODART").as_string();
|
||||
|
||||
TArticolo_lavanderie& artrec = cached_article_laundry(codart, 'C', codcf, 0);
|
||||
|
||||
@ -1793,16 +1790,15 @@ bool TLV_report::msg_lv_consmese(TVariant& var) const
|
||||
|
||||
TISAM_recordset fatture(query);
|
||||
|
||||
if(fatture.empty())
|
||||
if (fatture.empty())
|
||||
{
|
||||
query.cut(0);
|
||||
query << "USE DOC KEY 4\n"
|
||||
<< "FROM TIPOCF=C CODCF=" << codcf << " PROVV=D ANNO=" << last_esc - 1 << "CODNUM=\"F01\"\n"
|
||||
<< "TO TIPOCF=C CODCF=" << codcf << " PROVV=D ANNO=" << last_esc - 1 << "CODNUM=\"F01\"\n";
|
||||
|
||||
TISAM_recordset tmp(query);
|
||||
fatture = tmp;
|
||||
<< "FROM TIPOCF=C CODCF=" << codcf << " PROVV=D ANNO=" << (last_esc - 1) << "CODNUM=\"F01\"\n"
|
||||
<< "TO TIPOCF=C CODCF=" << codcf << " PROVV=D ANNO=" << (last_esc - 1) << "CODNUM=\"F01\"\n";
|
||||
fatture.set(query);
|
||||
}
|
||||
fatture.move_last();
|
||||
|
||||
TString note = fatture.get(DOC_NOTE).as_string(); note.strip_spaces();
|
||||
TString16 data = note.right(10);
|
||||
|
Loading…
x
Reference in New Issue
Block a user