G'day All,
We are upgrading from mm4 to mm5.5 and I could not find any info. on the FulfillmentModule_Invoice_Footer, will the old code that I have still work? The code looks like:
<MvASSIGN NAME = "l.orders_id" VALUE = "{ orders.d.id }">
<MvDO FILE = "{ g.Module_Library_DB }" NAME = "l.found" VALUE = "{ OrderItem_FindFirst_Order( l.orders_id ) }">
If found then in a loop:
<MvDO FILE = "{ g.Module_Library_DB }" NAME = "l.found_opt" VALUE = "{ OrderOption_FindFirst_Line( l.line_id ) }">
and:
<MvDO FILE = "{ g.Module_Library_DB }" NAME = "l.found" VALUE = "{ OrderItem_FindNext_Order( l.orders_id ) }">
I access details from the orders like:
<MvASSIGN NAME = "g.mm_orders_ship_fname" VALUE = "{ orders.d.ship_fname }">
I also check for coupons:
<MvOPEN NAME="ordrchrg" database="Merchant2/00000001/ordrchrg.dbf" indexes="">
<MvGO NAME="ordrchrg" row="top">
<MvASSIGN NAME="l.coupon" VALUE="">
<MvWHILE EXPR="{NOT ordrchrg.d.eof}">
<MvCOMMENT> Coupon - SPECWDC01 </MvCOMMENT>
<MvIF EXPR="{ordrchrg.d.order_id EQ l.order_id AND 'SPECWDC01' CIN ordrchrg.d.desc}">
<MvASSIGN NAME="l.coupon" VALUE="SPECWDC01">
<MvWHILESTOP>
</MvIF>
<MvSKIP NAME="ordrchrg">
</MvWHILE>
<MvCLOSE NAME="ordrchrg">
Is the above code still correct or is there a better way?
Also, what is the return value in Module_API_Version and Module_Version please - thanks.
TIA
Regards, Peter
We are upgrading from mm4 to mm5.5 and I could not find any info. on the FulfillmentModule_Invoice_Footer, will the old code that I have still work? The code looks like:
<MvASSIGN NAME = "l.orders_id" VALUE = "{ orders.d.id }">
<MvDO FILE = "{ g.Module_Library_DB }" NAME = "l.found" VALUE = "{ OrderItem_FindFirst_Order( l.orders_id ) }">
If found then in a loop:
<MvDO FILE = "{ g.Module_Library_DB }" NAME = "l.found_opt" VALUE = "{ OrderOption_FindFirst_Line( l.line_id ) }">
and:
<MvDO FILE = "{ g.Module_Library_DB }" NAME = "l.found" VALUE = "{ OrderItem_FindNext_Order( l.orders_id ) }">
I access details from the orders like:
<MvASSIGN NAME = "g.mm_orders_ship_fname" VALUE = "{ orders.d.ship_fname }">
I also check for coupons:
<MvOPEN NAME="ordrchrg" database="Merchant2/00000001/ordrchrg.dbf" indexes="">
<MvGO NAME="ordrchrg" row="top">
<MvASSIGN NAME="l.coupon" VALUE="">
<MvWHILE EXPR="{NOT ordrchrg.d.eof}">
<MvCOMMENT> Coupon - SPECWDC01 </MvCOMMENT>
<MvIF EXPR="{ordrchrg.d.order_id EQ l.order_id AND 'SPECWDC01' CIN ordrchrg.d.desc}">
<MvASSIGN NAME="l.coupon" VALUE="SPECWDC01">
<MvWHILESTOP>
</MvIF>
<MvSKIP NAME="ordrchrg">
</MvWHILE>
<MvCLOSE NAME="ordrchrg">
Is the above code still correct or is there a better way?
Also, what is the return value in Module_API_Version and Module_Version please - thanks.
TIA
Regards, Peter
Comment