Thanks Gents!

I think saving off the entire order would be fantastic. In the mean time,
though, like Jacques said, possibly just adding things like shipping into,
discounts etc. to the list of things saved off could be a temporary fix.

After looking around a lot more, I feel like I have a better handle on
things.

Jacques, what are some options to get literature on the framework of OFBIZ?
It would be greek to me, but Mike (My partner in development crime) could
probably benefit from that.


On Wed, Jul 9, 2008 at 4:24 AM, Jacques Le Roux <
[EMAIL PROTECTED]> wrote:

> Christopher, Branden,
>
> From: "Christopher L" <[EMAIL PROTECTED]>
>
>> Ok, I took a look into this, and currently what is happening is that when
>> you "save a sale" the POS basically saves the items in the shopping cart.
>>  Nothing else is saved.
>>
>
> Yes, that's true. It uses the shopping list exactly
>
>  I think what you really want to do is save an order.  Actually, after
>> looking through the order objects, I don't think that discounts / promotions
>> are saved if you "save a sale" either.
>>
>
> Right, for the same reason
>
>  JLR, what do you think?
>>
>
> A Jira issue already exists
> https://issues.apache.org/jira/browse/OFBIZ-565. Not for the same reasons
> but the fundamental need is the same. To be able to save all informations
> about a sale, not only its items.
> BTW, OFBIZ-424 and OFBIZ-431 which were blocking this issue have been fixed
> I did not test Branden's patch yet, just reviewed it. Maybe it's not be
> needed to save the sale but simply to add some specificites in your
> application. Of course be able to save no only the cart content(items) from
> the POS but also other informations (discount, etc.) would be a plus for the
> community.
>
>  I'm going to sleep on this and take another look in the morning.
>>
>
> FYI, I'm currently working on
> https://issues.apache.org/jira/browse/OFBIZ-1656. I hope to commit today.
>
> Jacques
>
>
> C
>
>
>  Date: Tue, 8 Jul 2008 16:40:40 -0400
>> From: [EMAIL PROTECTED]
>> To: user@ofbiz.apache.org; [EMAIL PROTECTED]
>> Subject: Re: POS - Additional Info working with questions
>>
>> Alrighty!!!  I'm now throughly confused!!
>>
>> What I have:
>> 1) addtlInfo method works!   I can ring up a sale, do whatever I need to
>> do,
>> click the "addtlInfo" button I have on my POS screen.  Enter a string, and
>> then do my prep receipt print, and it shows up!  YAY!!
>>
>> 2) If I enter the additional Info, click enter, go back to the sale, and
>> then click on the additional info button again, my string is recalled
>> (just
>> how I wanted!)
>>
>> HOWEVER.  Like before, (I'm like a broken record! ;) ) If I save the sale,
>> and then load the sale....AND THEN....click the addtional info button, I
>> get
>> nothing... well DUH... It's not included in the cart items that are saved!
>> Now.....Here's the part thats killing me.
>>
>> I can see delegation items in:
>>
>> applications/order/src/org/ofbiz/order/shoppinglist/ShoppingListEvents.java
>> specialpurpose/pos/src/or/ofbiz/pos/PosTransaction.java
>>
>> I KINDA see whats going on.  But it confuses me more than anything else.
>> I took a look at the entity reference sheet and see this...
>> ENTITY: OldOrderShipmentPreference | TABLE: ORDER_SHIPMENT_PREFERENCE
>> shippingInstructions
>> Shipping instructions
>>  SHIPPING_INSTRUCTIONS long-varchar String VARCHAR(255)
>> Now that I'm getting everyone deep in my mess.   I see this in
>> applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java
>> The method public List makeItemShipGroupAndAssoc(GenericDelegator
>> delegator,
>> ShoppingCart cart, long groupIndex)
>> has:
>> shipGroup.set("shippingInstructions", shippingInstructions);
>>
>> This is where it's put into the database right?  Or if not, I'm on the
>> correct path to finding this out?!?!
>>
>> On another note.... am I to use the delegator to save the
>> shippinginstructions sepereatly from teh cart... or for ease of use (and
>> what seems to make more sense to me) should I try somehow to tack that
>> item
>> on to the cart so it's saved with everything else?!?!
>>
>> Ok...Now that you're all throughly scratching your heads, I'll let you
>> mull
>> on it!
>>
>> Thanks!
>>
>>
>>
>> On Tue, Jul 1, 2008 at 1:27 PM, Branden Strickland <
>> [EMAIL PROTECTED]> wrote:
>>
>> > Thanks!
>> >
>> > I'll update soon
>> >
>> >
>> >
>> > On Tue, Jul 1, 2008 at 12:06 PM, Christopher L <[EMAIL PROTECTED]>
>> > wrote:
>> >
>> >> In ofbiz, persistence is handled by framework/entity.  When you are
>> >> looking through other code, if you see any references to "delegator",
>> that's
>> >> a tip that something is going on that may involve persistence.
>> >>
>> >> Have you checked the database to make sure it's not being persisted?
>> >>  These three tables may have something in the ShippingInstructions
>> field.
>> >>
>> >> ORDER_SHIPMENT_PREFERENCE
>> >> OrderHeaderAndShipGroups
>> >> ORDER_ITEM_SHIP_GROUP
>> >>
>> >> If you haven't found it yet, "WebTools" (bottom of the ofbiz web admin)
>> ->
>> >> Entity Reference -> View Data, can be of use.
>> >>
>> >> C
>> >>
>> >> > Date: Tue, 1 Jul 2008 10:03:03 -0400
>> >> > From: [EMAIL PROTECTED]
>> >> > To: [EMAIL PROTECTED]; user@ofbiz.apache.org
>> >> > Subject: Re: POS - Additional Info working with questions
>> >> >
>> >> > I'm using:
>> >> >
>> >> >  public void setShippingInstructions(String shippingInstructions) {
>> >> >         this.setShippingInstructions(0, shippingInstructions);
>> >> >     }
>> >> >
>> >> > In /app/order/src/org/ofbiz/shoppingcart/shoppingcart.java
>> >> >
>> >> > If that helps.
>> >> >
>> >> > It's not saved off... I can see that in the code, I'm just wondering
>> the
>> >> > best way to go about it, and was also slightly curious where the
>> actual
>> >> > database sql code is housed, so I can go take a look to where the
>> >> special
>> >> > instructions are saved and whatnot.
>> >> >
>> >> > Thanks Chris!
>> >> >
>> >> > On Tue, Jul 1, 2008 at 12:58 AM, Christopher L <
>> [EMAIL PROTECTED]>
>> >> > wrote:
>> >> >
>> >> > >
>> >> > > What class and method are you currently using?  I can't find the
>> email
>> >> I
>> >> > > sent to you detailing my research.
>> >> > >
>> >> > > C
>> >> > >
>> >> > > ------------------------------
>> >> > > > Date: Mon, 30 Jun 2008 15:59:57 -0400
>> >> > > > From: [EMAIL PROTECTED]
>> >> > > > To: user@ofbiz.apache.org; [EMAIL PROTECTED]
>> >> > > > Subject: Re: POS - Additional Info working with questions
>> >> > >
>> >> > > >
>> >> > > > I've pretty much got this working.
>> >> > > >
>> >> > > > Although, It doesn't seem that the ShippingInstructions are saved
>> >> when
>> >> > > the
>> >> > > > sale is saved. Does anyone know off of the top of their head
>> which
>> >> method
>> >> > > I
>> >> > > > need to modify to include the ShippingInstructions in getting
>> saved
>> >> to a
>> >> > > > shoppingcart?
>> >> > > >
>> >> > > > Thanks!
>> >> > > >
>> >> > > > On Wed, Jun 25, 2008 at 6:00 PM, Jacques Le Roux <
>> >> > > > [EMAIL PROTECTED]> wrote:
>> >> > > >
>> >> > > > > From: "Branden Strickland" <[EMAIL PROTECTED]>
>> >> > > > >
>> >> > > > >> All,
>> >> > > > >>
>> >> > > > >> I've gotten most of the functionality of pressing a button to
>> >> modify a
>> >> > > > >> field
>> >> > > > >> to appear on a "prep" receipt (the receipt that a cook or
>> >> delivery
>> >> > > person
>> >> > > > >> will see...Not the custreceipt).
>> >> > > > >>
>> >> > > > >> What works:
>> >> > > > >> I have a button on the main POS page (you can really put it
>> where
>> >> ever
>> >> > > you
>> >> > > > >> want) that does some neat things...
>> >> > > > >>
>> >> > > > >> 1) It calls the newly added keyboard.java file BUT we've
>> modified
>> >> the
>> >> > > > >> method
>> >> > > > >> that calls it to use a different xml file so some things can
>> be
>> >> > > changed to
>> >> > > > >> suit this field, such as more text area and a carriage return
>> >> button.
>> >> > > > >>
>> >> > > > >
>> >> > > > > Interesting, I was also thinking about a property to completly
>> >> > > deactivate
>> >> > > > > the keyboard at will (some people are using a real keyd)
>> >> > > > >
>> >> > > > > 2) It passes your "custom request" into the special
>> instructions
>> >> field
>> >> > > > >> that
>> >> > > > >> we mentioned was already implemented for shipping.
>> >> > > > >>
>> >> > > > >> What doesn't work:
>> >> > > > >> 1) I'm not finished working with the new receipt template.
>> It's a
>> >> > > little
>> >> > > > >> confusing, but I'm getting the hang of it.
>> >> > > > >> 2) I'm not even going to attempt to modify the journal.java's
>> >> jtable
>> >> > > to
>> >> > > > >> try
>> >> > > > >> to call the custom requests so that they show up on the
>> monitor.
>> >> If
>> >> > > one
>> >> > > > >> of
>> >> > > > >> you guys are good enough to do that and know the API well
>> enough,
>> >> go
>> >> > > for
>> >> > > > >> it! Showing up on the receipt is goooooood enough for this sys
>> >> admin
>> >> > > > >> transformed into quasi java programmer!
>> >> > > > >>
>> >> > > > >
>> >> > > > > We will see, when we will have your code.
>> >> > > > >
>> >> > > > > 3) I'm currently working on adding methods to the (forgive me I
>> >> don't
>> >> > > have
>> >> > > > >> it in front of me, so I'm guessing at which java file).
>> >> Printer...Or
>> >> > > > >> device
>> >> > > > >> loader? Basically what I'm trying to do is add a Receipt2, or
>> >> > > ReceiptPrep
>> >> > > > >> to "pos-components.xml" and add the already working TCP
>> printer
>> >> though
>> >> > > > >> JPOS's SetupPos program. Then I can differentiate the print
>> >> button I
>> >> > > want
>> >> > > > >> to use to send the data using the "prep" template (no extra
>> text,
>> >> or
>> >> > > > >> prices,
>> >> > > > >> just orders with customizations) and the regular customer
>> receipt
>> >> > > printing
>> >> > > > >> functionality at the end of the sale. I'm almost finished with
>> >> this.
>> >> > > > >>
>> >> > > > >> Hopefully if all goes well tonight (it never does!) I'll have
>> >> time to
>> >> > > not
>> >> > > > >> only create a Jira issue for this (if anyone is interested)
>> but
>> >> I'll
>> >> > > > >> hopefully be able to create a Jira issue for the TCP printer
>> info
>> >> /
>> >> > > setup
>> >> > > > >> /
>> >> > > > >> small quarks.
>> >> > > > >>
>> >> > > > >
>> >> > > > > Feel free top open as many as Jira issues you need.
>> >> > > > >
>> >> > > > > I haven't forgotten about the TCP printer, don't worry ;)
>> >> > > > >>
>> >> > > > >> Just thought I'd keep you all in the loop, rather than
>> completely
>> >> > > finish
>> >> > > > >> then get a good Idea from someone!
>> >> > > > >>
>> >> > > > >
>> >> > > > > Sorry not even an ideas tonight (without speaking of a good
>> one) :
>> >> too
>> >> > > late
>> >> > > > > :o) Jacques
>> >> > > > >
>> >> > > > > Thanks!
>> >> > > > >>
>> >> > > > >>
>> >> > >
>> >>
>> >
>> >
>>
>
>

Reply via email to