STPH#36546: [BES] Status bestelopdrachten.
svn path=/Website/trunk/; revision=30565
This commit is contained in:
@@ -139,6 +139,8 @@ function opdr_list (pautfunction, params)
|
||||
+ ", bes_bestelling_parentkey"
|
||||
+ ", bes_bestelopdr_opmerking"
|
||||
+ ", bes_bestelopdr_delivery_opmerk"
|
||||
+ ", boi.bes_bestelopdr_item_aantal"
|
||||
+ ", boi.bes_bestelopdr_item_aantalontv"
|
||||
+ " FROM bes_bestelopdr b"
|
||||
+ ", prs_bedrijf be"
|
||||
+ ", mld_adres ma"
|
||||
@@ -282,10 +284,15 @@ function opdr_list (pautfunction, params)
|
||||
function fncolStatusText(oRs)
|
||||
{
|
||||
var opdrStatus = oRs("bes_bestelopdr_status").Value;
|
||||
if(opdrStatus == 6 && oRs("bes_bestelling_retourvan_key").Value > 0)
|
||||
return L("lcl_bes_collected");
|
||||
else
|
||||
return bes.getbesopdrstatustext(opdrStatus);
|
||||
var retourvanKey = oRs("bes_bestelling_retourvan_key").Value;
|
||||
if (opdrStatus == 6 && retourvanKey > 0)
|
||||
return L("lcl_bes_collected");
|
||||
var itemAantal = oRs("bes_bestelopdr_item_aantal").Value;
|
||||
var itemAantalOntv = oRs("bes_bestelopdr_item_aantalontv").Value;
|
||||
if (opdrStatus == 4 && itemAantalOntv > 0 && itemAantalOntv < itemAantal)
|
||||
return L("lcl_bes_deels_geleverd");
|
||||
else
|
||||
return bes.getbesopdrstatustext(opdrStatus);
|
||||
}
|
||||
|
||||
function fncolOrderVoor(oRs)
|
||||
|
||||
Reference in New Issue
Block a user