Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Chris Foot 61 posts 93 karma points
    Jul 07, 2015 @ 19:41
    Chris Foot
    0

    Delivery Notes/Details

    Is there any way to save/view a customer delivery note against an order? I'm talking about specific instructions from a customer (i.e: If i'm not in, leave my package behind the bin). The current site i'm building has the requirement and I can't seem to spot any way of getting this into/out of the system.

    Thanks

    Chris

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jul 07, 2015 @ 19:51
    Rusty Swayne
    0

    Sorry Chris. That is not in there yet. Maybe add a feature request and we can add it - there would not be much too it.

  • Chris Foot 61 posts 93 karma points
    Jul 07, 2015 @ 19:53
    Chris Foot
    0

    I could always add it myself and submit a pull request if that would be ok with you?

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jul 07, 2015 @ 20:32
    Rusty Swayne
    0

    That would be fantastic. Are you thinking a new table in the database?

  • Chris Foot 61 posts 93 karma points
    Jul 07, 2015 @ 22:00
    Chris Foot
    0

    It strikes me as just a field against each order, (though I don't yet know how orders are stored), so I wouldn't think a whole new table would be needed but i'll investigate further into the inner workings!

    I'll need the feature before I can finish the site i'm working on so i'll definitely be putting something together. That'll be tomorrow however, since it's now 11pm here and I need some sleep!

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jul 07, 2015 @ 22:30
    Rusty Swayne
    0

    I totally understand. I think a new table may be the most flexible as you could then stuff notes for Invoices, Orders, Shipments and Payments .... similar to the AuditLog setup.

    Maybe ping me tomorrow before you get going to look more closely at your use case.

  • Biagio Paruolo 1594 posts 1825 karma points c-trib
    Jul 08, 2015 @ 09:13
    Biagio Paruolo
    0

    You can add a table Note related to order. After you need to add edit note into backoffice

  • Chris Foot 61 posts 93 karma points
    Jul 08, 2015 @ 09:35
    Chris Foot
    0

    Hi Biagio,

    This sounds like a solution that wouldn't be fully integrated into Merchello. I'd rather add the feature directly into Merchello for a future version so that it would be usable out of the box.

    Chris

  • Chris Foot 61 posts 93 karma points
    Jul 08, 2015 @ 09:38
    Chris Foot
    0

    Rusty:

    I'm starting work on this now. My use case is simply for a customer to give extra instructions for delivery/picking etc but I can see the potential for other uses (e.g: communication between sales and warehouse) so I am going down the additional table route as suggested. As you suggested, the way the audit log works does seem like exactly the right place to start so i'm currently duplicating all of the audit log stuff and adapting it. I suspect i'll have something to look at today. Initially these will probably just be read only in the back office for sales since i'm very new to angular but once the framework is there it shouldn't be to hard to add read/write everywhere else.

    Chris

  • Biagio Paruolo 1594 posts 1825 karma points c-trib
    Jul 08, 2015 @ 09:38
    Biagio Paruolo
    0

    Yes, I mean into Merchello...you need to create a plugin or customize the solution and push the code on github.

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jul 08, 2015 @ 16:14
    Rusty Swayne
    0

    Hey Chris,

    The angular will not be too bad for your use case. I'm guessing we can do it as a little directive that we can put on the invoice (sort of like the sales history directive). If you get stuck on that, don't worry.

  • Chris Foot 61 posts 93 karma points
    Jul 08, 2015 @ 16:23
    Chris Foot
    0

    Hi Rusty,

    I'm still working on this. You can see my progress on my fork here: https://github.com/chris64digital/Merchello/commits/1.9.1

    Can you take a look and make sure i'm going in the right direction please if you have time.

    I'm struggling to work out how to get a note applied to an invoice at the moment, i've added a function to the salepreparation to add a new note but can't seem to figure out what to do next! I'm sure i'll work it out in the morning tomorrow though.

    Thanks

    Chris

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jul 08, 2015 @ 16:40
    Rusty Swayne
    0

    Hi Chris,

    I'll take a look this afternoon. Getting the note onto the invoice should not be a big deal. I think we'll wind up creating another task for the invoice Builder or something. That'll require a few adjustments to the invoice - but I can handle those.

         <taskChain alias="SalesPreparationInvoiceCreate">
      <tasks>
        <task type="Merchello.Core.Chains.InvoiceCreation.AddBillingInfoToInvoiceTask, Merchello.Core" />
        <task type="Merchello.Core.Chains.InvoiceCreation.ConvertItemCacheItemsToInvoiceItemsTask, Merchello.Core" />
        <task type="Merchello.Web.Workflow.InvoiceCreation.AddCouponDiscountsToInvoiceTask, Merchello.Web" />
        <task type="Merchello.Core.Chains.InvoiceCreation.ApplyTaxesToInvoiceTax, Merchello.Core" />        
        <task type="Merchello.Core.Chains.InvoiceCreation.ValidateCommonCurrency, Merchello.Core" />
        <task type="[ADD NOTES TASK]" />
      </tasks>
    
  • Chris Foot 61 posts 93 karma points
    Jul 15, 2015 @ 13:24
    Chris Foot
    0

    Hi Rusty,

    I'm struggling a little to get the notes saved against the basket. They are serialized into xml just fine but when I attempt to deserialize them I get null reference errors which I can't get to the bottom of. I believe that it is something to do with the fact that i'm inheriting from entity and the exception references the OnPropertyChanged method. I'm not sure exactly how the entity system works. Am I right to be inheriting from Entity? Should I perhaps have a separate object for use in serializing/deserializing?

    Thanks

    Chris

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jul 15, 2015 @ 20:08
    Rusty Swayne
    0

    Serializing/Deserializing for the Back Office?

    If you post a link to your repo I can take a look.

  • Chris Foot 61 posts 93 karma points
    Jul 16, 2015 @ 07:49
    Chris Foot
    0

    Hi Rusty,

    It's for the front end, before the basket is made into an invoice, using salepreparation. I am attempting to store the notes in the same way as the address is stored since, in my use case, the note is related to the shipping address.

    My repo is here: https://github.com/chris64digital/Merchello

    Thanks

    Chris

  • Trevor Loader 199 posts 256 karma points
    Jul 22, 2015 @ 01:58
    Trevor Loader
    0

    Hey Chris, How did you get on with this? Did you get it working in the end? I need the same functionality for a site I'm building now.

  • Chris Foot 61 posts 93 karma points
    Jul 22, 2015 @ 07:42
    Chris Foot
    0

    Hi Trevor,

    No, I have not yet finished working on this. I'll be back to it, hopefully today, to get it finished!

    Chris

  • Chris Foot 61 posts 93 karma points
    Jul 30, 2015 @ 13:45
    Chris Foot
    0

    Hi Trevor,

    I have more or less finished this now. You can try it out on my fork of 1.9.1 which can be seen here: https://github.com/chris64digital/Merchello/tree/1.9.1

    There are some new methods on sale preparation for saving and fetching a note against the invoice. These are saved in memory until the invoice is saved to the database and show on the saleoverview page currently.

    Chris

  • Biagio Paruolo 1594 posts 1825 karma points c-trib
    Aug 20, 2015 @ 10:47
    Biagio Paruolo
    0

    Are there some update on this?

Please Sign in or register to post replies

Write your reply to:

Draft