sales and orders methods updates

This commit is contained in:
Min Zeya Phyo
2017-04-11 13:51:09 +08:00
parent 225ebdb7ef
commit 5b1bb6f6cd
10 changed files with 150 additions and 9 deletions

View File

@@ -1,8 +1,18 @@
class Api::PaymentsController < ActionController::API
#Show customer by ID
#Payment by Invoice ID
# Payment Method - [Cash | CreditNote | VISA | MASTER | etc..]
# Invoice No | Amount
# Output
# Status - [True/False] | Invoice | error_message (* when status false)
def create
@customer = Customer.find_by(params[:id])
@invoice = Sale.find(params[:invoice_id])
end
# Update of payment status from the external party
# Invoice No | Payment ID | External params [] (* third party references and status)
#
def update
end
end