Patch level : 10.0 550
Files correlati : ve0.exe ve1.exe ve5.exe ve6.exe lv2.exe lv3.exe Ricompilazione Demo : [ ] Modificato lo scarico di magazzino per le lavanderie git-svn-id: svn://10.65.10.50/trunk@19800 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
4b19014df1
commit
ff429760f1
@ -1234,15 +1234,22 @@ int TDocumento::write_rewrite(TBaseisamfile & f, bool re) const
|
||||
const TRectype & caulav = cache().get("&LVCAU", codcauslav);
|
||||
if (!caulav.empty())
|
||||
{
|
||||
const real qta = r.get(RDOC_QTAGG1);
|
||||
const TString & causcons = caulav.get("S2");
|
||||
|
||||
if (causcons.full())
|
||||
mov[LF_RMOVMAG][j - 1].put(RMOVMAG_CODCAUS, causcons);
|
||||
|
||||
if (r_num == num_movmag && !qta.is_zero())
|
||||
if (!qta.is_zero())
|
||||
{
|
||||
const TString & causcons = caulav.get("S2");
|
||||
|
||||
CHECK(j > 1, "Wrong row number");
|
||||
if (causcons.full())
|
||||
mov[LF_RMOVMAG][j - 1].put(RMOVMAG_CODCAUS, causcons);
|
||||
else
|
||||
mov.destroy_row(--j, true);
|
||||
}
|
||||
|
||||
const real qtarit = r.get(RDOC_QTAGG1);
|
||||
const TString & causrit = caulav.get("S1");
|
||||
|
||||
if (r_num == num_movmag && !qtarit.is_zero() && causrit.full())
|
||||
{
|
||||
const TString & causrit = caulav.get("S1");
|
||||
TRectype & rm = mov.insert_row(j++);
|
||||
|
||||
rm.put(RMOVMAG_IMPIANTO, r.get(RDOC_IMPIANTO));
|
||||
@ -1259,7 +1266,7 @@ int TDocumento::write_rewrite(TBaseisamfile & f, bool re) const
|
||||
rm.put(RMOVMAG_CODART, codart);
|
||||
rm.put(RMOVMAG_LIVGIAC, r.get(RDOC_LIVELLO));
|
||||
rm.put(RMOVMAG_UM, r.get(RDOC_UMQTA));
|
||||
rm.put(RMOVMAG_QUANT, qta);
|
||||
rm.put(RMOVMAG_QUANT, qtarit);
|
||||
rm.put(RMOVMAG_CODCAUS, causrit);
|
||||
rm.put(RMOVMAG_TIPORIGA, (char) riga_dadocumento);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user