Valuya / comptoir

2 stars 2 forks source link

Customer Loyalty #121

Closed ymajoros closed 8 years ago

ymajoros commented 8 years ago

Every time a customer buys something, 10% (configurable) of the amount of full-price articles goes on his loyalty account (= special customer account). This happens at sale close, and is somehow a link to sale ± custom adjustment (like, - 5 €). By link, I mean we should always able to recalculate everything, should a sale be cancelled at a later time or whatever.

A customer can pay with his loyalty account.

cghislai commented 8 years ago

Just to be sure:

Then, on sale close, the custom amount can be edited. The amount is computed using the loyaltyRate and customAmount. To pay a sale, we set a negative amount (+ link to accountingEntry later) To get the balance, we sum the amount.

Should the current account balance be stored in db (that means more bookkeeping when sale are reopened)?

And should we provide a way to set a defaultDiscountRate per customer while were at it?

ymajoros commented 8 years ago

Loyalty rate is normally general. There can be a specific one by customer, but that won't happen too much.

What's "customAmount"?

Everything should be mostly automatic, but you can always exclude some articles (e.g. on sale articles should be excluded, you could choose others manually).

cghislai commented 8 years ago

"What's "customAmount"?": When you were saying 'custom adjustment', I thought the user should be able to add a custom loyalty amount when closing a sale

"you can always exclude some articles (e.g. on sale articles should be excluded, you could choose others manually).": I'm not sure I understand correctly. Articles should be marked as accounted for loyalty accounts and the user should be able to overwrite this for a given sale, right?

ymajoros commented 8 years ago

I meant, you can always uncheck some item from customer loyalty. Or check one that wasn't taken by default (e.g. items with rebates).

Le jeu. 24 mars 2016 à 08:45, cghislai notifications@github.com a écrit :

"What's "customAmount"?": When you were saying 'custom adjustment', I thought the user should be able to add a custom loyalty amount when closing a sale

"you can always exclude some articles (e.g. on sale articles should be excluded, you could choose others manually).": I'm not sure I understand correctly. Articles should be marked as accounted for loyalty accounts and the user should be able to overwrite this for a given sale, right?

— You are receiving this because you were assigned.

Reply to this email directly or view it on GitHub https://github.com/Valuya/comptoir/issues/121#issuecomment-200707349

Yannick Majoros Valuya sprl