0% found this document useful (0 votes)
7 views9 pages

OAPB311

Code

Uploaded by

vamsi karna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views9 pages

OAPB311

Code

Uploaded by

vamsi karna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 9

CSR PKSUBR BEGSR

*================================================================ *
*================================================================ * *****
This function creates a POS update record to load the * ***** Ad item
price to POS. * ***** Move the Ad Event
Key into Work Fields for retrieving the * ***** direct price.
C MOVELWHBTCD WUBTCD ADV EVENT TYPE C
MOVELWHBUCD WUBUCD ADV EVENT SEQ N C MOVELWHBVCD
WUBVCD ADV EV VER CENT C MOVELWHBWCD WUBWCD
ADV LOCATION TY C MOVELWHBXCD WUBXCD ADV
LOCATION NB C MOVELWHBYCD WUBYCD ADV EV VER LOCA
C MOVELWHGRCD WUGRCD ADV EV VER MK S * *****
Move the Ad Event Key into Work Fields for retrieving the * ***** alternate
price. C
MOVELWHBTCD WUUOCD WRK ADV EVENT T C MOVELWHBUCD
WUUPCD WRK ADV EVENT S C MOVELWHBVCD WUUQCD
WRK ADV EV VER C MOVELWHBWCD WUQ6CD WRK ADV
LOCATIO C MOVELWHBXCD WUQ7CD WRK ADV LOCATIO C
MOVELWHBYCD WUQ8CD WRK ADV EV LOCA C
MOVELWHGRCD WUU1ST WRK ADV EV VER * ***** % Change below made by
J. O'Grady, 8/30/93: * ***** % Removed the call to OAR004
(Generic retrieve object * ***** % of ad item record).
* % Instead, move Ad Item parm fields into work fields C
EXSR PLSUBR % Instead, move * ***** Do not process if
instructed to "remove from POS", and * ***** none of the "POS Status
indicators" are set to "loaded". * ***** % AND if family code is blank
(process if family code is * ***** % filled in - changed by J. O'Grady,
8/30/93. * *** Do not process if instructed to "remove from POS"
* CASE: PAR.wrk POS load/remove flag is Remove from POS C
P4VCST IFEQ 'R' *IF * CASE: WRK.Adv POS
Alt Prc Sts Ind is Not Loaded C WUY0ST IFEQ 'N'
*IF * CASE: WRK.Adv POS CPN Sts IND is Not Loaded
C WUQLST IFEQ 'N' *IF * CASE:
WRK.Adv Pos Dir Prc Sts Ind is Not Loaded C WUKDST
IFEQ 'N' *IF * CASE: WRK.Adv Pos Family Sts
Ind is Not Loaded C WUKEST IFEQ 'N'
*IF * CASE: WRK.ADV ITEM FAMILY CODE is blank C
WUGPCD IFEQ *BLANK *IF C GOTO PKEXIT
*QUIT C END *FI C
END *FI C END
*FI C END *FI C
END *FI C END
*FI * ***** Do not process if Ad event is being HELD/EXPIRED and the
* ***** ad item is trying to be loaded to POS. * *** Do
not process if Ad event is being HELD/EXPIRED * CASE: PAR.wrk POS
load/remove flag is Load to POS C P4VCST IFEQ 'L'
*IF * CASE: PAR.SAVE ADV EVENT V POS STAT is Held Ad
C WUF1SS IFEQ 'H' *IF C
GOTO PKEXIT *QUIT C END
*FI * ***** Do not process if the store does not honor the ad event.
* ***** (Earliest blank time is zero.) * ***
Do not process if the store does not honor the ad event. * CASE:
WRK.ADV EV V EARLIEST BRK TM is Blank C
WUAITM IFEQ 0 *IF C
GOTO PKEXIT *QUIT C END
*FI * I-32271 Rajeev Chatterjee <03/19/04> Change start
* Added the code the Exclude the processing of Items which are *
waiting for Re Explosion. * ***Do
not process if ad item is Excluded item or Waiting for Re E * CASE: WRK.ADV
EXCL INCL CODE is Not to be processed C WUA4ST
IFEQ 'R' *IF C WUA4ST OREQ
'X' C WUA4ST OREQ 'E'
C GOTO PKEXIT *QUIT C
END *FI * I-32271 Rajeev Chatterjee
<03/19/04> Change End * *** Do not process ad items if
they don't contain an ad price
* *** an ad percent off or ad amount off. RJM 7/7/00. * ***
Check for reasons not to process * CASE:
WRK.ADV SPOT TYPE CD is a coupon item C
WUB7CD IFEQ 'C' *IF * CASE:
* - c1 OR c2 * |-
c1 : WRK.ADV ITEM COUPON NBR is In range of 1000-3999 * |- c2 :
WRK.ADV ITEM COUPON NBR is In range of 5000-9999 * '-
C WUBMNB IFGE 1000 *IF C
WUBMNB ANDLE3999 C WUBMNB
ORGE 5000 *OR C WUBMNB ANDLE9999
* CASE: * - c1 AND
c2 AND c3 * |- c1 : WRK.ADV
ITEM RETAIL PRICE is Equal to zero * |- c2 : WRK.ADV ITEM PERCENT
OFF is default * |- c3 : WRK.ADV ITEM AMOUNT OFF is default
* '- C
MOVEL'0' Y0CX01 1 C WUA5PR IFEQ 0
*IF C WUA4PR IFEQ 0 *IF C
MOVEL'1' Y0CX01 C END
*FI C END *FI C
END *FI C Y0CX01 IFEQ '1'
*IF C GOTO PKEXIT *QUIT C
END *FI C END
*FI C END *FI C
ELSE * CASE: WRK.ADV SPOT TYPE CD is a
feature item C WUB7CD IFEQ 'F'
*IF * CASE: *
- c1 AND c2 AND c3 * |- c1 :
WRK.ADV ITEM RETAIL PRICE is Equal to zero * |- c2 : WRK.ADV ITEM
PERCENT OFF is default * |- c3 : WRK.ADV ITEM AMOUNT OFF is
default * '-
* ***** Get the Store Item record for the item being processed. * MNR902
Get Store Item - ITEM * C
EXSR PMRVGN * *** Proj# 5473
* *** Change by Harmeet Virdee < BEGIN > 08/14/2003 * Check
Hour Sale Exists - Adv Hour Sale Event * OA054P C
EXSR PNRVGN * *** Set Flag for Hour Sale.
* CASE: * - c1
AND c2 * |- c1 :
WRK.Record Found is Yes * |- c2 : JOB.*Job
time LT WRK.ADV EV V EARLIEST BRK TM * '-
C MOVEL'0' Y0CX01 1 C
WUOVSS IFEQ 'Y' *IF C
##JTM IFLT WUAITM *IF C
MOVEL'1' Y0CX01 * *** Change by Harmeet Virdee
< END > 08/14/2003 * ***** % Action below changed by J.
O'Grady, 5/7/93: * ***** % Added statement to format a
'Delete item from POS' trans * ***** % to the PR019P file if the item was
not found in Item File * ***** Added condition check for Hour Sale Event.
HSV * *** Added Hour Sale Condition. Harmeet Proj# 5473
* ** Create POS UPDATE (PR019P) record *
CASE: * - c1
AND c2 * |- c1 :
PGM.*Return code is *Record does not exist * |- c2 :
PAR.Hour Sale Event? (Y/N) is No * '-
C Y0CX01 IFEQ '1' *IF * Create
POS UPDATE - POS UPDATE * * Move input
parameters to subroutine local variables. C Z-
ADDP2FKDT WL0001 POS Tran Create C Z-ADDP3BITM
WL0002 POS Tran Create C MOVEL'A' WL0003 P
POS Transaction C MOVEL'D0' WL0004 P POS
Transaction C MOVELWHCCDE WL0005 P ITEM NUMBER
C MOVELWHBCDE WL0006 P PRODUCT IDENTIF C
MOVEL*BLANK WL0007 POS PLU Number C Z-ADD*ZERO
WL0008 POS Adv Item Co C MOVEL'34' WL0009 P
Prc Tran Type C MOVEL*BLANK WL0035 ADV ITEM
FAMILY C MOVEL'Y' WL0036 P UPDATE POS IND
C MOVEL'N' WL0037 P Price Required C
MOVEL*BLANK WL0038 POS Update Erro C EXSR
SOCRRC C GOTO PKEXIT
*QUIT C END *FI
* ***** Set the indicators to their default values for processing. C
MOVEL'N' WUBKST Wrk Det Family C MOVEL'N'
WUAZST Wrk Family Foun C MOVEL'N' WUBJST
Wrk Get Act Fam C MOVEL'N' WUBIST Wrk
Ld/Unl Coup C MOVEL'N' WUBLST Wrk Update
Item * ***** Set the Everyday Price fields to their default for the
* ***** item. C
Z-ADD*ZERO WUDVPR Evydy Retail Pr * ** Yonsoo Jun 01/15/02
Project 02011-04 Ad Coupon Refresh Process * ** Rtvobj, OAPB320X RTV SUR FOR PR
3, use Evydy Retail Multiple * ** to calculate division. Because of zero
intitialization functio * ** OAPB311 won't be able to compile. Field Evydy
Retail Multiple * ** is in no use when field Evydy Retail Price is zero.
Z-ADD1 WUJRNB Evydy Retail Mu
MOVEL*BLANK WUR2CD Evydy Retail Pr Z-ADD*ZERO
WUDWPR Evydy Single UT * *****% Change below made by J. O'Grady,
9/2/93: * *****% Blank out the 'Active Family Code' field
MOVEL*BLANK WUBICE Adv Item Family * Yonsoo
Jun 01/15/02 Project 02011-04 Ad Coupon Refresh Process to C
MOVEL'Y' WUAGSV Continue * ** Overlapping Coupons.
* CASE: PAR.ADV SPOT TYPE CD is a coupon item C
WHB7CD IFEQ 'C' *IF * OAPB380
OverlappingCoupon - Adv Ev V Item Exploded * C
CALL 'OAPB380' 90 OAPB380 Overlap C PARM
*BLANK W0RTN 7 C PARM WHCCDE
WQ0300 6 ITEM NUMBER C PARM WHBTCD WQ0301 1
ADV EVENT TYPE * ** QUIT If Overlap Coupon found.
* CASE: WRK.Quit is Yes C
WUPPSS IFEQ 'Y' *IF C
GOTO PKEXIT *QUIT C END
*FI C END *FI
* *** Issue # 39288 * ***
STR: Reorganize of OA009P file / Coupon Number + Family Code * *** Changed by
Gaurav Verma (TCS) < 11/08/2006 > < BEGIN > * ** Perform the following
tests for Coupons Req'd Stores only * CASE: WRK.Continue is Yes
C WUAGSV IFEQ 'Y' *IF * ***
Issue # 39288 * *** STR:
Reorganize of OA009P file / Coupon Number + Family Code * *** Changed by
Gaurav Verma (TCS) < 11/08/2006 > < BEGIN > * ***** Perform the
following tests for Coupons Req'd Stores only * CASE: PAR.STORE COUPON
REQUIRED is COUPON REQUIRED C WUABST IFEQ 'Y'
*IF * ***** Determine what type of further processing is needed to
* ***** load the Ad item to POS. * CASE:
WRK.ADV SPOT TYPE CD is a coupon item C WUB7CD
IFEQ 'C' *IF X* ***** Determine what type of
further processing is needed to 00* ***** load the Ad item to POS.
00* CASE: WRK.ADV SPOT TYPE CD is a coupon item 00
WUB7CD IFEQ 'C' *IF 00* CASE:
WRK.ADV ITEM COUPON NBR is has been entered 00
WUBMNB IFGT 0 *IF 00* CASE:
WRK.ADV ITEM PRM ASC LNK IND is a primary item 00
WUETST IFEQ 'P' *IF 00
MOVEL'Y' WUBIST Wrk Ld/Unl Coup 00
END *FI 00
MOVEL'Y' WUBKST Wrk Det Family 00
ELSE 00* CASE: *OTHERWISE
00 END *FI 00
C ELSE * CASE:
WRK.ADV SPOT TYPE CD is a feature item C
WUB7CD IFEQ 'F' *IF C
END *FI C END
*FI * *** Issue # 39288
* *** STR: Reorganize of OA009P file / Coupon Number + Family Code * ***
Changed by Gaurav Verma (TCS) < 11/08/2006 > < BEGIN > * ***
Commented the code as it was updating the file OA009P with * the
wrong Family Code. In all the cases, the Family Code shou * be same as
Coupon Item's Coupon Number. * *** Put the new code to
update the file OA009P to have the * Family Code value same as the
Coupon Number. * @RTV Update Family Code - Adv Ev V Item
Exploded * OA009P EXSR PORVGN
* *** Need to set flag Wrk Family Found Ind to FOUND to process fur * This
flag was being set in OAPB320B/OAPB320C. As they are com * now, we need to
set it. * CASE: PAR.wrk POS load/remove
flag is Load to POS P4VCST IFEQ 'L'
*IF C MOVEL'Y' WUAZST Wrk
Family Foun C ELSE
* CASE: PAR.wrk POS load/remove flag is Remove from POS C
P4VCST IFEQ 'R' *IF C
MOVEL'N' WUAZST Wrk Family Foun C END
*FI C END *FI
* *** Changed by Gaurav Verma (TCS) < 11/08/2006 > < END > * *****
Determine whether the coupon needs to be Loaded/Unloaded * CASE: WRK.Wrk
Ld/Unl Coupon Ind is Yes C WUBIST IFEQ
'Y' *IF * ** Comments: Project P02011-04
Adv Coupon Refresh Process to POS C EXSR PSSUBR
** Comments: Pr * ** Load/Unload
a coupon to POS. * CASE: PAR.wrk POS
load/remove flag is Load to POS C P4VCST IFEQ
'L' *IF * *** Check if Event is HOUR SALE
* CASE: PAR.Hour Sale Event? (Y/N) is Yes C
WN0017 IFEQ 'Y' *IF * CASE:
* CASE: * - c1 AND
c2 * |- c1 :
PAR.PRODUCT IDENTIFIER is Not Null * |- c2 : PAR.PRODUCT
IDENTIFIER is Not Blank * '-
MOVEL'0' Y0CX01 1
WHBCDE IFGT @CN,003 *IF WHBCDE
IFNE *BLANK *IF MOVEL'1'
Y0CX01 END
*FI END *FI
C END *FI C
Y0CX01 IFEQ '1' *IF * PSPB240M Frmt
POS Cpn Add C
EXSR PTSUBR * *** Set Coupon Type field
with Cents-Off or Direct Price. * CASE: WRK.pos item type is Cents-
Off Coupon C WUCJNB IFEQ 3
*IF * *** Coupon Type = 03
C Z-ADD03 WUZQKX POS Coupon Type C
ELSE * CASE: WRK.pos item type is
Direct Price Coupon C WUCJNB IFEQ 2
*IF * *** Coupon Type = 01
C Z-ADD01 WUZQKX POS Coupon Type C
END *FI C END
*FI C MOVEL*BLANK WUBCDE PRODUCT
IDENTIF C MOVEL*BLANK WUBCDE PRODUCT IDENTIF C
MOVELWHBMNB WUBCDE PRODUCT IDENTIF * OAPB320AB Load HR S Data - Adv
Hour Sale POS Capture * C EXSR PXRVGN
C EXSR PXRVGN C
Z-ADD*ZERO WUZQKX POS Coupon Type C END
*FI C ELSE
* CASE: *OTHERWISE * **
Create the POS UPDATE transaction * *** Changed
by Adya Dutta TCS < 06/22/2006 > < BEGIN > * *** Changed by Gaurav
Verma(TCS) < 08/28/2006 > < BEGIN > * *** Put the Case to have the
same coupon number and Family Code * only for Spot Type "C" and not for
"F" (Feature). Also, if th * is no coupon number, no need to populate
Family Code as '0000 * *** In all the cases, Coupon Nbr And Family Code should
be same * *** Issue # 39288
* *** STR: Reorganize of OA009P file / Coupon Number + Family Code * ***
Added by Gaurav Verma (TCS) < 11/08/2006 > < BEGIN > * *** Need to
initialize the Family Code field to have have the new C
MOVEL*BLANK YL0034 ADV ITEM FAMILY * *** Added by Gaurav Verma
(TCS) < 11/08/2006 > < END > * CASE:
* - c1 AND c2 * |-
c1 : PAR.ADV SPOT TYPE CD is a coupon item * |- c2 :
PAR.ADV ITEM COUPON NBR is has been entered * '-
C MOVEL'0' Y0CX01 1 C
WHB7CD IFEQ 'C' *IF C WHBMNB
IFGT 0 *IF C MOVEL'1'
Y0CX01 C END
*FI C END *FI
C Y0CX01 IFEQ '1' *IF C
MOVEL*BLANK YL0034 ADV ITEM FAMILY C
MOVELWHBMNB YL0034 ADV ITEM FAMILY C ELSE
* CASE: *OTHERWISE C
MOVEL*BLANK YL0034 ADV ITEM FAMILY C END
*FI * *** Changed by Gaurav Verma(TCS) < 08/28/2006 > < END >
* Create POS UPDATE - POS UPDATE * * Move
input parameters to subroutine local variables. C
Z-ADDP2FKDT WL0001 POS Tran Create C Z-
ADDP3BITM WL0002 POS Tran Create * Move input parameters to
subroutine local variables. C Z-ADDP2FKDT
WL0001 POS Tran Create C Z-ADDP3BITM WL0002
POS Tran Create C MOVEL'A' WL0003 P POS
Transaction C MOVEL'R0' WL0004 P POS
Transaction C MOVEL'000000' WL0005 P ITEM NUMBER
C MOVEL@CN,003 WL0006 P PRODUCT IDENTIF C
MOVEL*BLANK WL0007 POS PLU Number C Z-
ADDWUBMNB WL0008 POS Adv Item Co C MOVEL'32'
WL0009 P Prc Tran Type C MOVEL*BLANK WL0010
Everyday Retail C MOVEL*BLANK WL0011 New
Retail Leve C Z-ADD*ZERO WL0012 New Retail
Pric C MOVEL*BLANK WL0033 Adv Alt Mix Mat
C Z-ADD*ZERO WL0034 Adv Alt Mix Mat C
MOVELYL0034 WL0035 P ADV ITEM FAMILY C
MOVEL'Y' WL0036 P UPDATE POS IND C
MOVEL'N' WL0037 P Price Required C
MOVELWUR9CD WL0038 P POS Update Erro C EXSR
SOCRRC * *** Changed by Adya Dutta
TCS < 06/22/2006 > < END > C END
*FI * ** Update the 'POS Coupon Status Flag' on the Ad Item
Record * OAPB320W UPDT AD CPN STS - Adv Ev V Item Exploded *
OA009P C EXSR QARVGN
C ELSE
* CASE: PAR.wrk POS load/remove flag is Remove from POS C
P4VCST IFEQ 'R' *IF * ** Create the
POS UPDATE transaction * *** Changed by
Adya Dutta TCS < 06/22/2006 > < BEGIN > * *** Changed by
Gaurav Verma(TCS) < 08/28/2006 > < BEGIN > * *** Put the Case to
have the same coupon number and Family Code * only for Spot Type
"C" and not for "F" (Feature). Also, if th * is no coupon number, no
need to populate Family Code as '0000 * *** In all the cases, Coupon Nbr And
Family Code should be same * *** Issue # 39288
* *** STR: Reorganize of OA009P file / Coupon Number + Family Code * *** Added
by Gaurav Verma (TCS) < 11/08/2006 > < BEGIN > * *** Need to
initialize the Family Code field to have have the new
MOVEL*BLANK YL0034 ADV ITEM FAMILY * *** Added by Gaurav Verma
(TCS) < 11/08/2006 > < END > * *** Changed by Gaurav Verma(TCS) <
08/28/2006 > < END > * *** Coupon Removal From POS
* *** Added By Ankur Sen (TCS) < 12/21/2010 > < BEGIN > * *** Check
if the same coupon exists on another item in same event * OAPB381
ChkCpnRmvValidate - Adv Ev V Item Exploded * OA009P
CALL 'OAPB381' 90 OAPB381 ChkCpnR PARM *BLANK
W0RTN 7 PARM WHBTCD WQ0324 1
ADV EVENT TYPE PARM WHBUCD WQ0325 4 ADV EVENT
SEQ N PARM WHBVCD WQ0326 3 ADV EV VER CENT
PARM WHBWCD
WQ0327 1 ADV LOCATION TY C PARM WHBXCD WQ0328
5 ADV LOCATION NB C PARM WHBYCD WQ0329 2 ADV
EV VER LOCA C PARM WHGRCD WQ0330 1 ADV EV VER MK S
C PARM WHCCDE WQ0331 6 ITEM NUMBER C
PARM WHBMNB WQ0332 40 ADV ITEM COUPON C YL0035 PARM *BLANK
WQ0333 1 FLAG *
C *IN90 IFEQ '1' * Call to
program ended in error C
MOVEL'Y2U0032' W0RTN C MOVEL*BLANKS
W0CLPG 10 C END
* *** Check Flag status *
CASE: LCL.FLAG is Yes C
YL0035 IFEQ 'Y' *IF * Create POS
UPDATE - POS UPDATE * PR019P * Move input
parameters to subroutine local variables. C
Z-ADDP2FKDT WL0001 POS Tran Create C Z-
ADDP3BITM WL0002 POS Tran Create C MOVEL'A'
WL0003 P POS Transaction C MOVEL'D0' WL0004
P POS Transaction C MOVEL'000000' WL0005 P
ITEM NUMBER C MOVEL@CN,003 WL0006 P PRODUCT
IDENTIF C MOVEL*BLANK WL0007 POS PLU Number
C Z-ADDWUBMNB WL0008 POS Adv Item Co C
MOVEL'33' WL0009 P Prc Tran Type C
MOVEL*BLANK WL0010 Everyday Retail C
MOVEL*BLANK WL0011 New Retail Leve C Z-
ADD*ZERO WL0012 New Retail Pric C MOVEL*BLANK
WL0033 Adv Alt Mix Mat C Z-ADD*ZERO WL0034
Adv Alt Mix Mat C MOVELYL0034 WL0035 P ADV ITEM
FAMILY C MOVEL'Y' WL0036 P UPDATE POS IND
C MOVEL'N' WL0037 P Price Required C
MOVELWUR9CD WL0038 P POS Update Erro C EXSR
SOCRRC C END
*FI * *** Added By Ankur Sen (TCS) < 12/21/2010 > < END >
* *** Changed by Adya Dutta TCS < 06/22/2006 > < BEGIN > * **
Update the 'POS Coupon Status Flag' on the Ad Item Record * OAPB320W
UPDT AD CPN STS - Adv Ev V Item Exploded * OA009P C
EXSR QCRVGN C END
*FI C END *FI
* !!! Project: P02011-04 - commented out this bad logic for loading
* !!! unloading coupons to POS C
END *FI C END
*FI * *** Changed by Gaurav Verma (TCS) < 11/08/2006 > <
END > C END *FI
* *** Changed by Gaurav Verma (TCS) < 11/08/2006 > < END > C
END *FI * *** Changed by Gaurav Verma
(TCS) < 11/08/2006 > < END > * +READ THIS NOTE IF ANY CHANGE IS
REQUIRED FROM THIS POINT ON.+ C EXSR QESUBR
+READ THIS NOTE * ***** Perform the following regardless of whether the store
is * ***** 'Coupons Required' or 'Coupons not Required'.
* ***** Get the lowest active direct ad price for processing. * *****
Notes: 1) From here, everyday retail parms passed are blank * ***** 2)
Item record fields are passed for use in * ***** calling
PRR9099 Get Everyday Retail * *** Replaced for Hour Sale Proj:
5473 Harmeet. * *** Project: Centralized Pricing
Environment Phase-I *** Changed by Vijay Kumar < 08/29/13 > <
BEGIN > *** Copying the below internal function so that data at
POS will *** sent from PR035P.Market/District/Corporate/Sub retail files w
*** obsoleted now. OAPB320EH
GET DIRE_CpyVj1
EXSR QFSUBR *** Changed by Vijay Kumar <
08/29/13 > < END > *** Replaced for Hour Sale Proj: 5473
Harmeet. ***** Get the lowest active alternate ad price
for processing. OAPB320PH GET ALT PRICE
C EXSR RGSUBR C
Z-ADDWUZUNB WUO8NB Mix Match Nbr * ***** Determine if the Mix
Match Number from the Alternate Price * ***** is to be passed to POS.
* *** Check if Mix Match Nbr - Dir Price is does not Exis *
CASE: WRK.Mix Match Nbr - Dir Price is does not Exist C
WUZUNB IFLE 0 *IF * CASE: WRK.Direct
Price Found Ind is not Found C WUBNST IFEQ
'N' *IF * CASE: WRK.Mix Match Nbr - Alt
Price is Exists C WUYNNB IFGT 0
*IF C Z-ADDWUYNNB WUO8NB Mix
Match Nbr C END *FI
C END *FI C
END *FI * ***** Set the Transaction
types for creating the POS Update * ***** record.
C MOVEL'R0' WUQWCD POS Transaction C
MOVEL'31' WUOTCD Prc Tran Type * *** Load Hour Sale File
details with the lowest Item prices. * *** Load Hour Sale File details
with the lowest Item prices. * *** Harmeet Proj: 5473
* *** For Hour Sale Event,Check Lowest Price and Load POS file. *
CASE: PAR.Hour Sale Event? (Y/N) is Yes C
WN0017 IFEQ 'Y' *IF * PSPB240LY2 FMT
ITM POS AD C
EXSR VBSUBR * *** Further Check Required
because of corruption of Event Seq Nbr * Check Hour Sale Exists - Adv Hour
Sale Event * OA054P C EXSR WARVGN
* *** Set Flag for Hour Sale. CASE:
- c1 AND c2 |- c1 :
WRK.Record Found is Yes |- c2 : JOB.*Job time LT
WRK.ADV EV V EARLIEST BRK TM '-
MOVEL'0' Y0CX01 1 WUOVSS
IFEQ 'Y' *IF ##JTM IFLT WUAITM
*IF MOVEL'1' Y0CX01
END *FI C END
*FI C Y0CX01 IFEQ '1' *IF
* *** Process only if PRODUCT IDENTIFIER is not BLANK. * CASE:
* - c1 AND c2 * |- c1
: PAR.PRODUCT IDENTIFIER is Not Null * |- c2 :
PAR.PRODUCT IDENTIFIER is Not Blank * '-
C MOVEL'0' Y0CX01 1 C
WHBCDE IFGT @CN,003 *IF C
MOVEL'1' Y0CX01 C END
*FI C END *FI
C Y0CX01 IFEQ '1' *IF * OAPB320AB
Load HR S Data - Adv Hour Sale POS Capture * OA055P C EXSR
WBRVGN C END
*FI C END *FI
C GOTO PKEXIT *QUIT
GOTO PKEXIT *QUIT
END *FI * *** End Of Change Harmeet
* ***** If nothing was found to load to POS (i.e., no direct price, * ***** (no
alternate price, and no family), * ***** - and if instucted
to 'Load POS', quit processing. * ***** - ELSE if instucted to 'remove
from POS', and the item is * ***** scannable, set PRC TRAN TYPE to 'Adv Item
Delete' * ***** (leave POS TRAN TYPE as "Standard Item Replace").
* *** If nothing was found to load to POS * CASE:
WRK.Direct Price Found Ind is not Found * *** If nothing was
found to load to POS * CASE: WRK.Direct Price Found Ind
is not Found C WUBNST IFEQ 'N'
*IF * CASE: WRK.Alternate Price Found Ind is not Found
C WUBOST IFEQ 'N' *IF * CASE:
WRK.Wrk Family Found Ind is not Found C WUAZST
IFEQ 'N' *IF * CASE: PAR.wrk POS load/remove
flag is Load to POS C P4VCST IFEQ 'L'
*IF C GOTO PKEXIT *QUIT
C ELSE * CASE:
PAR.wrk POS load/remove flag is Remove from POS * CASE: PAR.PRODUCT
IDENTIFIER is Not Default C WHBCDE IFNE @CN,003
*IF * ***** If nothing was found to load to POS,
* ***** and if instructed to 'remove' from POS: * ***** and if
the item IS scannable, * ***** set PRC TRAN TYPE to
'Adv Item Delete' * ***** (leave POS TRAN TYPE as "Standard
Item Replace"). C MOVEL'34' WUOTCD Prc
Tran Type C END *FI C
END *FI C END
*FI C END *FI
C END *FI C
END *FI C END
*FI * ***** If the item is non-scannable, retrieve/release the PLU
* ***** Number for that item. C
MOVEL*BLANK WUY7CD POS PLU Number * **** 05/20/98 Processing to
handle 8000-series coupons commented * **** Instead, non-scannable (WIC-only)
items will be *QUIT
* **** 05/20/98 Processing to handle 8000-series coupons commented * ****
Instead, non-scannable (WIC-only) items will be *QUIT * *** QUIT if
UPC is 00000000000000 * CASE: PAR.PRODUCT
IDENTIFIER is DEFAULT WHBCDE IFEQ
@CN,003 *IF GOTO PKEXIT
*QUIT END *FI
* // TCS - P# 6009 Module 2 <11-17-2004>- Begin * ****
Process for Non-Hour Sale Ad Event for ERB Data * *** Update the
price-points in file OA028P for this Item if the * Item is an ERB
Item.Call PSPB240LY1 to call PSPB240LY to get * lowest POS Sale Price-
points. * ***** % call the OAPB320Z routine,
which performs the same * ***** % "create" logic, however, if a
duplicate key condition * ***** % occurs, the routine will then update the
PR019P record * ***** % with the latest values.
* *** Populate PR019P * CASE:
PAR.Adv Store Dept Number is Cigarette Department WHJ2CD
IFEQ '080' *IF * ** Yonsoo Jun 07/29/03 Issue
#29637 2-Pack Pricing (PR1 & PR3) * IF: 2-Pack+ Prc THEN: Declr POS Prc Mthd
as PR3 Othrwise PR1 * CASE: PAR.ADV ITEM RETAIL PRICE is greater than zero
WN0014 IFGT 0 *IF * CASE:
PAR.ADV ITEM RETAIL MULTIPLE is a multiple Greater Than 1 WN0013
IFGT 1 *IF * CASE: PAR.Adv Item Single Unit
Rtl is Greater than Zero

You might also like